Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kf8br-0003Jh-9Y for qemu-devel@nongnu.org; Mon, 15 Sep 2008 03:34:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kf8bq-0003J7-K5 for qemu-devel@nongnu.org; Mon, 15 Sep 2008 03:34:58 -0400 Received: from [199.232.76.173] (port=54117 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kf8bq-0003J1-AK for qemu-devel@nongnu.org; Mon, 15 Sep 2008 03:34:58 -0400 Received: from mx20.gnu.org ([199.232.41.8]:38433) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kf8bq-0006ml-Dh for qemu-devel@nongnu.org; Mon, 15 Sep 2008 03:34:58 -0400 Received: from hall.aurel32.net ([91.121.138.14]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kf8bp-00062k-6k for qemu-devel@nongnu.org; Mon, 15 Sep 2008 03:34:57 -0400 Received: from volta.aurel32.net ([2002:52e8:2fb:1:21e:8cff:feb0:693b]) by hall.aurel32.net with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Kf8bo-0005Vj-1X for qemu-devel@nongnu.org; Mon, 15 Sep 2008 09:34:56 +0200 Received: from aurel32 by volta.aurel32.net with local (Exim 4.69) (envelope-from ) id 1Kf8bn-0005CX-82 for qemu-devel@nongnu.org; Mon, 15 Sep 2008 09:34:55 +0200 Date: Mon, 15 Sep 2008 09:34:55 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] sh4 doesn't set the cpu_model_str Message-ID: <20080915073455.GC9801@volta.aurel32.net> References: <48C799C8.4020708@gandalf.sssup.it> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <48C799C8.4020708@gandalf.sssup.it> 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 On Wed, Sep 10, 2008 at 11:56:24AM +0200, michael wrote: > Hi all, > > this patch fix the setting of cpu_model_str for the sh4 cpu. When the qemu > do a cpu_copy can crash. Thanks, applied. > Regards Michael > > > > > 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); -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net