]> git.proxmox.com Git - qemu.git/commitdiff
linux-user: bsd-user: Don't reset X86CPU twice
authorAndreas Färber <afaerber@suse.de>
Sun, 20 Jan 2013 04:34:10 +0000 (05:34 +0100)
committerAndreas Färber <afaerber@suse.de>
Fri, 1 Feb 2013 00:35:43 +0000 (01:35 +0100)
Since commit 65dee38052597b6285eb208125369f01b29ba6c1 (target-i386:
move cpu_reset and reset callback to cpu.c) the x86 CPU is reset through
cpu_init() but was still reset immediately after in linux-user and
bsd-user. Clean this up.

Similarly in linux-user/syscall.c it is also reset after cpu_copy().
But that's a bug of its own, fixing which poses a semantic change.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
bsd-user/main.c
linux-user/main.c

index 1dc033046bf9077597a1e0aafa6e4d3a4eee5af6..ae24723710acea5c2568e0b358f52a5757e5a947 100644 (file)
@@ -917,7 +917,7 @@ int main(int argc, char **argv)
         fprintf(stderr, "Unable to find CPU definition\n");
         exit(1);
     }
-#if defined(TARGET_I386) || defined(TARGET_SPARC) || defined(TARGET_PPC)
+#if defined(TARGET_SPARC) || defined(TARGET_PPC)
     cpu_reset(ENV_GET_CPU(env));
 #endif
     thread_env = env;
index 0181bc211257ec10424f36c2b3a5a5b511fcc3cd..3df8aa2cc58d139151147f084824913a2cf96f9a 100644 (file)
@@ -3540,7 +3540,7 @@ int main(int argc, char **argv, char **envp)
         fprintf(stderr, "Unable to find CPU definition\n");
         exit(1);
     }
-#if defined(TARGET_I386) || defined(TARGET_SPARC) || defined(TARGET_PPC)
+#if defined(TARGET_SPARC) || defined(TARGET_PPC)
     cpu_reset(ENV_GET_CPU(env));
 #endif