Fix the undefined shift

This commit is contained in:
lazymio 2022-02-12 18:22:56 +01:00
parent d0de673208
commit e548cd9eb1
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
2 changed files with 2 additions and 2 deletions

View File

@ -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;
/*

View File

@ -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 */