Mips undefined shift fix

Backports commit 46999575fb9e82ccd925e835d0d7db47200e010d from unicorn
This commit is contained in:
Catena cyber 2018-10-06 05:00:26 -04:00 committed by Lioncash
parent e3b8ea18bf
commit 2c9b6df879
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -38,7 +38,7 @@
#define MIPS_DEBUG_DISAS 0 #define MIPS_DEBUG_DISAS 0
/* MIPS major opcodes */ /* MIPS major opcodes */
#define MASK_OP_MAJOR(op) (op & (0x3F << 26)) #define MASK_OP_MAJOR(op) (op & (((uint32_t)0x3F) << 26))
enum { enum {
/* indirect opcode tables */ /* indirect opcode tables */