diff --git a/qemu/target/mips/translate.c b/qemu/target/mips/translate.c index 3b458dbd..20311747 100644 --- a/qemu/target/mips/translate.c +++ b/qemu/target/mips/translate.c @@ -38,7 +38,7 @@ #define MIPS_DEBUG_DISAS 0 /* 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 */