From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FXnO2-00077M-PM for qemu-devel@nongnu.org; Sun, 23 Apr 2006 18:49:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FXnO1-00077A-8H for qemu-devel@nongnu.org; Sun, 23 Apr 2006 18:49:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FXnO1-000777-3c for qemu-devel@nongnu.org; Sun, 23 Apr 2006 18:49:01 -0400 Received: from [193.7.176.20] (helo=bender.bawue.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FXnQ7-0000ax-93 for qemu-devel@nongnu.org; Sun, 23 Apr 2006 18:51:11 -0400 Date: Sun, 23 Apr 2006 23:48:47 +0100 From: Thiemo Seufer Subject: Re: [Qemu-devel] new MIPS instructions Message-ID: <20060423224847.GA6034@networkno.de> References: <444BB919.3060403@bellard.org> <20060423174847.GA9279@networkno.de> <444BCA67.6020300@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <444BCA67.6020300@gmail.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dirk Behme Cc: qemu-devel@nongnu.org Dirk Behme wrote: [snip] > Pro "additional parameter": FPU is a good example for this. > If the processor I want to emulate has no FPU I would assume > if my code uses (accidently?) FPU instructions I get > exception/error/warning from QEMU. It confused me that QEMU > (wrongly) executes my program with unsupported instructions > (architecture) without any warning. In the long term we want both, I think, but ATM enhancing the emulation capabilities has clearly priority for me. We should probably go for a two-way approach: a per-ISA switch for the userland emulation, and a per (generic-ish) CPU switch for system emulation. > I'm not an ELF expert: Does ELF contain information about > architecture compiled for? If yes, we can combine both ways > above? Load ELF file, read architecture from it and let QEMU > autoselect correct architecture features (or give error if > not supported). Then we have emulation accuracy but don't > need additional options. Binutils adds usually header flags for the ISA, but it doesn't have to, and the original ELF ABI mandates even the flags should be zero. It doesn't cover FPU, and MIPS16 as only ASE AFAIR. Thiemo