From: ths Date: Thu, 7 Dec 2006 00:30:19 +0000 (+0000) Subject: Simplify mask construction. X-Git-Tag: release_0_9_0-iwjtag~174 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a410875d089a92ee4abf249c8d0b566a2925a505;p=qemu-xen-3.4-testing.git Simplify mask construction. --- diff --git a/target-mips/translate.c b/target-mips/translate.c index cf625488..16b73a14 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -353,8 +353,8 @@ enum { OPC_BC1TL = (0x03 << 16) | OPC_BC1, }; -#define MASK_CP1_BCOND(op) MASK_CP1(op) | (op & ((0x1F << 21) | (0x3 << 16))) -#define MASK_CP1_FUNC(op) MASK_CP1(op) | (op & ((0x1F << 21) | 0x3F)) +#define MASK_CP1_BCOND(op) MASK_CP1(op) | (op & (0x3 << 16)) +#define MASK_CP1_FUNC(op) MASK_CP1(op) | (op & 0x3F) #define MASK_CP2(op) MASK_OP_MAJOR(op) | (op & (0x1F << 21)) #define MASK_CP3(op) MASK_OP_MAJOR(op) | (op & (0x1F << 21))