From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IY4T1-0004x4-DN for qemu-devel@nongnu.org; Wed, 19 Sep 2007 14:40:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IY4T0-0004wj-LS for qemu-devel@nongnu.org; Wed, 19 Sep 2007 14:40:07 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IY4T0-0004wg-Hu for qemu-devel@nongnu.org; Wed, 19 Sep 2007 14:40:06 -0400 Received: from bangui.magic.fr ([195.154.194.245]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IY4T0-0004Lp-0q for qemu-devel@nongnu.org; Wed, 19 Sep 2007 14:40:06 -0400 Subject: Re: [Qemu-devel] Re: qemu/target-ppc helper.c op.c op_helper.c op_he... From: "J. Mayer" In-Reply-To: References: Content-Type: text/plain Date: Wed, 19 Sep 2007 20:40:03 +0200 Message-Id: <1190227203.14938.368.camel@rapid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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 Cc: Hollis Blanchard On Wed, 2007-09-19 at 16:35 +0000, Hollis Blanchard wrote: > On Wed, 19 Sep 2007 05:44:04 +0000, Jocelyn Mayer wrote: > > > CVSROOT: /sources/qemu > > Module name: qemu > > Changes by: Jocelyn Mayer 07/09/19 05:44:04 > > > > Modified files: > > target-ppc : helper.c op.c op_helper.c op_helper.h > > translate.c > > > > Log message: > > Code provision for PowerPC BookE MMU model support. > > Better MSR flags initialisation. > > > > CVSWeb URLs: > > http://cvs.savannah.gnu.org/viewcvs/qemu/target-ppc/helper.c?cvsroot=qemu&r1=1.53&r2=1.54 > > http://cvs.savannah.gnu.org/viewcvs/qemu/target-ppc/op.c?cvsroot=qemu&r1=1.40&r2=1.41 > > http://cvs.savannah.gnu.org/viewcvs/qemu/target-ppc/op_helper.c?cvsroot=qemu&r1=1.37&r2=1.38 > > http://cvs.savannah.gnu.org/viewcvs/qemu/target-ppc/op_helper.h?cvsroot=qemu&r1=1.11&r2=1.12 > > http://cvs.savannah.gnu.org/viewcvs/qemu/target-ppc/translate.c?cvsroot=qemu&r1=1.64&r2=1.65 > > tlbwe and tlbre do not use PID; they use MMUCR[STID]. > > Also, IBM and Freescale Book E architectures are very different here, so I > would suggest naming these functions something more specific than > e.g. "do_booke_tlbwe". You're really implementing IBM's 440 > architecture here. Yes, you're right, this is incorrect for most (or all) cases. I did not notice what the Power specification says that tlbre and tlbwe are implementation dependent. I just compared IBM 440 and Freescale e500 TLB models and, you're absolutelly right, they actually use different implementation specific registers. Thanks for reporting this ! I will start adding big warnings in my code until I can recode it in a better way ;-) -- J. Mayer Never organized