Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2007 17:38:50 -0500
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        freebsd-emulation@FreeBSD.org
Cc:        Juergen Lock <nox@FreeBSD.org>
Subject:   [PATCH] Fix QEMU crash on amd64
Message-ID:  <200701311738.52070.jkim@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

--Boundary-00=_8pRwFqwCk6bo8Uv
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--Boundary-00=_8pRwFqwCk6bo8Uv
Content-Type: text/plain;
  charset="iso-8859-1";
  name="patch-cpu-exec.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="patch-cpu-exec.c"

--- 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)

--Boundary-00=_8pRwFqwCk6bo8Uv--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701311738.52070.jkim>