diff --git a/qemu/target-mips/translate.c b/qemu/target-mips/translate.c index 2e827b9c..c8e79646 100644 --- a/qemu/target-mips/translate.c +++ b/qemu/target-mips/translate.c @@ -34,7 +34,7 @@ //#define MIPS_DEBUG_SIGN_EXTENSIONS /* MIPS major opcodes */ -#define MASK_OP_MAJOR(op) (op & (0x3F << 26)) +#define MASK_OP_MAJOR(op) (op & (((uint32_t)0x3F) << 26)) enum { /* indirect opcode tables */