From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm2Se-0005A7-Gu for qemu-devel@nongnu.org; Wed, 05 Nov 2014 10:25:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm2SY-0001EO-6X for qemu-devel@nongnu.org; Wed, 05 Nov 2014 10:25:28 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:57807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm2SY-0001EC-1O for qemu-devel@nongnu.org; Wed, 05 Nov 2014 10:25:22 -0500 Message-ID: <545A4161.40805@imgtec.com> Date: Wed, 5 Nov 2014 15:25:21 +0000 From: Leon Alrae MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] mips: Make CP0.Config4 and CP0.Config5 registers signed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Maciej W. Rozycki" , qemu-devel@nongnu.org Cc: Aurelien Jarno On 04/11/2014 15:37, Maciej W. Rozycki wrote: > Make the data type used for the CP0.Config4 and CP0.Config5 registers > and their mask signed, for consistency with the remaining 32-bit CP0 > registers, like CP0.Config0, etc. > > Signed-off-by: Maciej W. Rozycki > --- > qemu-mips-config-int32_t.diff > Index: qemu-git-trunk/target-mips/cpu.h > =================================================================== > --- qemu-git-trunk.orig/target-mips/cpu.h 2014-11-02 01:05:19.000000000 +0000 > +++ qemu-git-trunk/target-mips/cpu.h 2014-11-02 01:08:26.527563002 +0000 > @@ -372,11 +372,11 @@ struct CPUMIPSState { > #define CP0C3_MT 2 > #define CP0C3_SM 1 > #define CP0C3_TL 0 > - uint32_t CP0_Config4; > - uint32_t CP0_Config4_rw_bitmask; > + int32_t CP0_Config4; > + int32_t CP0_Config4_rw_bitmask; > #define CP0C4_M 31 > - uint32_t CP0_Config5; > - uint32_t CP0_Config5_rw_bitmask; > + int32_t CP0_Config5; > + int32_t CP0_Config5_rw_bitmask; > #define CP0C5_M 31 > #define CP0C5_K 30 > #define CP0C5_CV 29 > Reviewed-by: Leon Alrae