aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-11-07 10:37:06 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-11-07 10:37:06 +0000
commitb55a37c981914aa8ecd21b9a2a2fb37f39b917c5 (patch)
tree934166a6ed652b1afb19733479d08260676ab9da /linux-user
parentPPC: rename cpu_ppc_reset to cpu_reset for consistency (diff)
downloadqemu-kvm-b55a37c981914aa8ecd21b9a2a2fb37f39b917c5.tar.gz
qemu-kvm-b55a37c981914aa8ecd21b9a2a2fb37f39b917c5.tar.bz2
qemu-kvm-b55a37c981914aa8ecd21b9a2a2fb37f39b917c5.zip
user: move CPU reset call to main.c for x86/PPC/Sparc
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index 81a1ada50..bcc36f256 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -2618,6 +2618,10 @@ 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)
+ cpu_reset(env);
+#endif
+
thread_env = env;
if (getenv("QEMU_STRACE")) {