From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GxNOW-00058I-SL for qemu-devel@nongnu.org; Thu, 21 Dec 2006 07:51:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GxNOV-00057x-40 for qemu-devel@nongnu.org; Thu, 21 Dec 2006 07:51:32 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GxNOU-00057r-Vv for qemu-devel@nongnu.org; Thu, 21 Dec 2006 07:51:31 -0500 Received: from [193.7.176.60] (helo=mail.bawue.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GxNOU-0004lR-IM for qemu-devel@nongnu.org; Thu, 21 Dec 2006 07:51:30 -0500 Date: Thu, 21 Dec 2006 12:45:56 +0000 From: Thiemo Seufer Subject: Re: [Qemu-devel] qemu hw/mips_r4k.c target-mips/cpu.h target-mip... Message-ID: <20061221124556.GB30873@networkno.de> References: <458A57B6.3080901@bellard.org> <20061221113234.GA30873@networkno.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061221113234.GA30873@networkno.de> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fabrice Bellard Cc: qemu-devel@nongnu.org Thiemo Seufer wrote: > Fabrice Bellard wrote: > > You should suppress the SIGN_EXTEND32() macro and just use an 'int32_t' > > cast... > > Then it may not work. A MIPS64 CPU requires properly sign-extended > 32bit values. Host architectures can define either sign- or zero- > Extension for 32bit values in 64bit Registers. Which makes no sense on a seond thought, as we support only 2-complement machines anyway. I'll try to get rid of the SIGN_EXTEND32. Thiemo