Patchwork x86: Fix INIT processing

login
register
mail settings
Submitter Jan Kiszka
Date June 23, 2010, 6:19 a.m.
Message ID <4C21A77B.5070308@web.de>
Download mbox | patch
Permalink /patch/56589/
State New
Headers show

Comments

Jan Kiszka - June 23, 2010, 6:19 a.m.
From: Jan Kiszka <jan.kiszka@siemens.com>

This fixes a regression of 0e26b7b892: Reset halted also on INIT.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 target-i386/helper.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Blue Swirl - June 27, 2010, 8:23 p.m.
Thanks, applied.

On Wed, Jun 23, 2010 at 6:19 AM, Jan Kiszka <jan.kiszka@web.de> wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> This fixes a regression of 0e26b7b892: Reset halted also on INIT.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>  target-i386/helper.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/target-i386/helper.c b/target-i386/helper.c
> index 718394c..e134340 100644
> --- a/target-i386/helper.c
> +++ b/target-i386/helper.c
> @@ -1151,6 +1151,7 @@ void do_cpu_init(CPUState *env)
>     cpu_reset(env);
>     env->interrupt_request = sipi;
>     apic_init_reset(env->apic_state);
> +    env->halted = !cpu_is_bsp(env);
>  }
>
>  void do_cpu_sipi(CPUState *env)
> --
> 1.6.0.2
>

Patch

diff --git a/target-i386/helper.c b/target-i386/helper.c
index 718394c..e134340 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -1151,6 +1151,7 @@  void do_cpu_init(CPUState *env)
     cpu_reset(env);
     env->interrupt_request = sipi;
     apic_init_reset(env->apic_state);
+    env->halted = !cpu_is_bsp(env);
 }
 
 void do_cpu_sipi(CPUState *env)