From 2c9b6df87923eb349158b172b90625200d42e3fd Mon Sep 17 00:00:00 2001 From: Catena cyber <35799796+catenacyber@users.noreply.github.com> Date: Sat, 6 Oct 2018 05:00:26 -0400 Subject: [PATCH] Mips undefined shift fix Backports commit 46999575fb9e82ccd925e835d0d7db47200e010d from unicorn --- qemu/target/mips/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */