diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-12-07 00:30:19 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-12-07 00:30:19 +0000 |
commit | e1449664164bff3b549a3b8e07ecdd0984fef53d (patch) | |
tree | 16709dfc3d57fe93975eecf5d12f55f5451042d9 /target-mips/translate.c | |
parent | bb8a53ad91e97389609fdda3f79536fcbe322930 (diff) |
Simplify mask construction.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2227 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/translate.c')
-rw-r--r-- | target-mips/translate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c index cf625488eb..16b73a1482 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)) |