[PATCH] Fix QEMU crash on amd64

Jung-uk Kim jkim at FreeBSD.org
Wed Jan 31 22:38:56 UTC 2007


I have been experiencing QEMU crash on FreeBSD/amd64 host ever since 
Fabrice had added SMP support.  Recently it was reported on QEMU 
development mailing list:

http://lists.gnu.org/archive/html/qemu-devel/2007-01/msg00285.html

For more than a year, I have been running QEMU with SMP support 
disabled because of this issue.  Today I finally found some time to 
tackle this and got a fix.

FYI...

Jung-uk Kim
-------------- next part --------------
--- qemu/cpu-exec.c.orig	Wed Jan 31 16:58:03 2007
+++ qemu/cpu-exec.c	Wed Jan 31 17:08:11 2007
@@ -226,9 +226,9 @@
 
 int cpu_exec(CPUState *env1)
 {
-    int saved_T0, saved_T1;
+    long saved_T0, saved_T1;
 #if defined(reg_T2)
-    int saved_T2;
+    long saved_T2;
 #endif
     CPUState *saved_env;
 #if defined(TARGET_I386)


More information about the freebsd-emulation mailing list