From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IjZwt-0002kO-IB for qemu-devel@nongnu.org; Sun, 21 Oct 2007 08:30:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IjZws-0002j1-0y for qemu-devel@nongnu.org; Sun, 21 Oct 2007 08:30:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjZwr-0002ij-PH for qemu-devel@nongnu.org; Sun, 21 Oct 2007 08:30:29 -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 1IjZwq-0006HN-Qz for qemu-devel@nongnu.org; Sun, 21 Oct 2007 08:30:29 -0400 Subject: Re: [Qemu-devel] I got a kernel booted under qemu-system-ppc ! From: "J. Mayer" In-Reply-To: <1192962274.16781.62.camel@rapid> References: <200710181912.57825.rob@landley.net> <200710200108.21660.rob@landley.net> <1192870252.16781.22.camel@rapid> <200710210455.51059.rob@landley.net> <1192962274.16781.62.camel@rapid> Content-Type: text/plain Date: Sun, 21 Oct 2007 14:28:30 +0200 Message-Id: <1192969710.16781.88.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: Aurelien Jarno , Milton Miller On Sun, 2007-10-21 at 12:24 +0200, J. Mayer wrote: > On Sun, 2007-10-21 at 04:55 -0500, Rob Landley wrote: > > On Saturday 20 October 2007 3:50:52 am J. Mayer wrote: [...] > > > And you can get the list of all CPUs emulated by Qemu with the '-cpu ?' > > > switch. > > > > I did that, but it -cpu ? gives output like: > > > > PowerPC 7448 PVR 80040201 > > PowerPC 7448v1.0 PVR 80040100 > > PowerPC 7448v1.1 PVR 80040101 > > PowerPC 7448v2.0 PVR 80040200 > > PowerPC 7448v2.1 PVR 80040201 > > > > I prefer the result of "-M ?" which makes it slightly clearer which field you > > need to feed qemu as an argument. (For the record, -cpu seems to want filed > > $2 of the -cpu ? output.) Also, that doesn't tell me what the differences > > between any of them are. > > The idea of showing the name of the model and the PVR (processor version > register) is that it can be useful to give Qemu a PVR instead of a name, > even if this possibility is not properly implemented in the commited > version. It's sometime more relevant to provide a PVR than a core name, > imho... Something I forgot to say is that this output is supposed to give a help to the end-user. It seems to me that showing the CPU family (ie PowerPC) can be useful when POWER and RS64 families will be emulated too, in order to help the user choose which CPU to emulate. > I will put a dump of the CPU features for all cores emulated by Qemu on > line soon. Here you'll find a reference for all PowerPC CPUs / cores / microcontrollers available with the Qemu -cpu switch. Hope I did not forget anything. For each CPU, you get: - its name, as provided with the Qemu -cpu switch - its PVR (processor version register) - the bits defined in the MSR (machine state register) - its MMU model and the TLB model when relevant - its exception handling model - its input bus model - the specific features provided by the MSR - its complete instructions set (only one insn is dumped when 2 instructions share the same opcode) - the complete list of SPRs (special purpose registers) with access rights in supervisor and user mode [...] -- J. Mayer Never organized