Fix the undefined shift
This commit is contained in:
parent
d0de673208
commit
e548cd9eb1
|
@ -72,7 +72,7 @@ void finalize_target_page_bits(struct uc_struct *uc)
|
|||
if (uc->init_target_page->bits == 0) {
|
||||
uc->init_target_page->bits = TARGET_PAGE_BITS_MIN;
|
||||
}
|
||||
uc->init_target_page->mask = (target_long)-1 << uc->init_target_page->bits;
|
||||
uc->init_target_page->mask = ((target_ulong)-1) << uc->init_target_page->bits;
|
||||
uc->init_target_page->decided = true;
|
||||
|
||||
/*
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#define MIPS_DEBUG_DISAS 0
|
||||
|
||||
/* MIPS major opcodes */
|
||||
#define MASK_OP_MAJOR(op) (op & (0x3F << 26))
|
||||
#define MASK_OP_MAJOR(op) (op & (0x3FL << 26))
|
||||
|
||||
enum {
|
||||
/* indirect opcode tables */
|
||||
|
|
Loading…
Reference in New Issue