From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IeYt7-0005xG-VN for qemu-devel@nongnu.org; Sun, 07 Oct 2007 12:21:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IeYt6-0005tx-MX for qemu-devel@nongnu.org; Sun, 07 Oct 2007 12:21:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IeYt6-0005th-81 for qemu-devel@nongnu.org; Sun, 07 Oct 2007 12:21:52 -0400 Received: from mail.bawue.net ([193.7.176.63]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IeYt6-0004fl-Gx for qemu-devel@nongnu.org; Sun, 07 Oct 2007 12:21:52 -0400 Date: Sun, 7 Oct 2007 17:21:47 +0100 From: Thiemo Seufer Subject: Re: [Qemu-devel] [RFC, PATCH] Support for loading 32 bit ELF files for 64 bit linux-user Message-ID: <20071007162147.GB13192@networkno.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel Blue Swirl wrote: [snip] > Index: qemu/linux-user/qemu.h > =================================================================== > --- qemu.orig/linux-user/qemu.h 2007-10-07 10:50:05.000000000 +0000 > +++ qemu/linux-user/qemu.h 2007-10-07 10:51:09.000000000 +0000 > @@ -33,6 +33,7 @@ > target_ulong data_offset; > char **host_argv; > int personality; > + int is_64bits; > }; I think the 64bit-ness should be part of the personality. In the end, we need a notion of the ABI in use, not just a specific cpu feature flag. (MIPS Linux has working support for 4 ABIs, and it could be up to a dozen different variants counting the unimplemented bits.) Thiemo