Commit e1449664 authored by ths's avatar ths
Browse files

Simplify mask construction.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2227 c046a42c-6fe2-441c-8c8c-71466251a162
parent bb8a53ad
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment