From owner-freebsd-emulation@FreeBSD.ORG Wed Jan 31 22:38:56 2007 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F32FE16A488 for ; Wed, 31 Jan 2007 22:38:55 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id B6FCF13C48E for ; Wed, 31 Jan 2007 22:38:55 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l0VMcs9g046913; Wed, 31 Jan 2007 17:38:54 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Wed, 31 Jan 2007 17:38:50 -0500 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_8pRwFqwCk6bo8Uv" Message-Id: <200701311738.52070.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2508/Wed Jan 31 11:42:50 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Juergen Lock Subject: [PATCH] Fix QEMU crash on amd64 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jan 2007 22:38:56 -0000 --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--