From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HR7a8-0001MW-17 for qemu-devel@nongnu.org; Tue, 13 Mar 2007 10:02:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HR7a6-0001M8-FI for qemu-devel@nongnu.org; Tue, 13 Mar 2007 10:02:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HR7a6-0001M5-9j for qemu-devel@nongnu.org; Tue, 13 Mar 2007 09:02:26 -0500 Received: from eastrmmtao104.cox.net ([68.230.240.46]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HR7ZJ-0002dY-Ey for qemu-devel@nongnu.org; Tue, 13 Mar 2007 10:01:37 -0400 Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao104.cox.net (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20070313140136.FWYS460.eastrmmtao104.cox.net@eastrmimpo01.cox.net> for ; Tue, 13 Mar 2007 10:01:36 -0400 Message-ID: <7605281.1173794497806.JavaMail.root@eastrmwml08.mgt.cox.net> Date: Tue, 13 Mar 2007 10:01:37 -0400 From: Ben Taylor MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5940_22820249.1173794497761" Subject: [Qemu-devel] PATCH: allow Sparc hosts to run arm/mips/sparc-softmmu Reply-To: sol10x86@cox.net, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Qemu-devel@nongnu.org ------=_Part_5940_22820249.1173794497761 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit This patch fixes crashes when testing with arm-test-0.2.tar.gz and mips-test-0.2.tar.gz. Without the patch, both arm-test and mips-test segfault when trying to boot. The original patch was authored by Martin Bochnig. ------=_Part_5940_22820249.1173794497761 Content-Type: text/x-patch; name=qemu-sparc-cpuexec-c.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=qemu-sparc-cpuexec-c.diff --- qemu/cpu-exec.c.ORIG 2007-03-13 09:46:51.940624000 -0400 +++ qemu/cpu-exec.c 2007-03-13 09:33:34.130534000 -0400 @@ -738,7 +744,10 @@ #else gen_func(); #endif +/* sparc hosts don't seem to like this method very much */ +#if !(defined(__sparc__) && !defined(TARGET_I386) && !defined(TARGET_X86_64) && !defined(TARGET_PPC)) env->current_tb = NULL; +#endif /* reset soft MMU for next block (it can currently only be set by a memory fault) */ #if defined(TARGET_I386) && !defined(CONFIG_SOFTMMU) ------=_Part_5940_22820249.1173794497761--