Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdMQH-0001qd-18 for qemu-devel@nongnu.org; Wed, 10 Sep 2008 05:55:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdMQF-0001pn-8U for qemu-devel@nongnu.org; Wed, 10 Sep 2008 05:55:40 -0400 Received: from [199.232.76.173] (port=52214 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdMQE-0001ph-TE for qemu-devel@nongnu.org; Wed, 10 Sep 2008 05:55:39 -0400 Received: from ms01.sssup.it ([193.205.80.99]:59830 helo=sssup.it) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdMQE-0008U6-GA for qemu-devel@nongnu.org; Wed, 10 Sep 2008 05:55:38 -0400 Received: from [193.205.82.7] (HELO gandalf.sssup.it) by sssup.it (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 44944262 for qemu-devel@nongnu.org; Wed, 10 Sep 2008 11:55:48 +0200 Received: from [10.30.3.161] ([10.30.3.161]) by gandalf.sssup.it (8.12.10/8.12.10) with ESMTP id m8A8jqVr011359 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 10 Sep 2008 10:45:53 +0200 Message-ID: <48C799C8.4020708@gandalf.sssup.it> Date: Wed, 10 Sep 2008 11:56:24 +0200 From: michael MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070602090608010305010403" Subject: [Qemu-devel] [PATCH] sh4 doesn't set the cpu_model_str Reply-To: 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 This is a multi-part message in MIME format. --------------070602090608010305010403 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi all, this patch fix the setting of cpu_model_str for the sh4 cpu. When the qemu do a cpu_copy can crash. Regards Michael --------------070602090608010305010403 Content-Type: text/x-patch; name="sh4.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sh4.patch" Fix setting of cpu_model_str for sh4 Index: target-sh4/translate.c =================================================================== --- target-sh4/translate.c (revision 5181) +++ target-sh4/translate.c (working copy) @@ -243,6 +243,7 @@ return NULL; cpu_exec_init(env); sh4_translate_init(); + env->cpu_model_str = cpu_model; cpu_sh4_reset(env); cpu_sh4_register(env, def); tlb_flush(env, 1); --------------070602090608010305010403--