Simplify mask construction.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2227 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
ths 2006-12-07 00:30:19 +00:00
parent bb8a53ad91
commit e144966416
1 changed files with 2 additions and 2 deletions

View File

@ -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))