diff --git a/cpu-exec.c b/cpu-exec.c index 3a537fc46c3f8df887aa80ae4cfd888c47d4af03..4741a252617511320d195633c71f1c7c7aa96c0c 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -187,7 +187,7 @@ static inline TranslationBlock *tb_find_fast(void) cs_base = 0; pc = env->nip; #elif defined(TARGET_MIPS) - flags = env->hflags & (MIPS_HFLAGS_TMASK | MIPS_HFLAG_BMASK); + flags = env->hflags & (MIPS_HFLAG_TMASK | MIPS_HFLAG_BMASK); cs_base = 0; pc = env->PC; #else diff --git a/target-mips/cpu.h b/target-mips/cpu.h index 809c586a0113a10c75411cc2225bee59838353c7..af5a97e68de9c33c184fe2103e89418e25562a62 100644 --- a/target-mips/cpu.h +++ b/target-mips/cpu.h @@ -149,7 +149,7 @@ struct CPUMIPSState { int user_mode_only; /* user mode only simulation */ uint32_t hflags; /* CPU State */ /* TMASK defines different execution modes */ -#define MIPS_HFLAGS_TMASK 0x00FF +#define MIPS_HFLAG_TMASK 0x007F #define MIPS_HFLAG_MODE 0x001F /* execution modes */ #define MIPS_HFLAG_UM 0x0001 /* user mode */ #define MIPS_HFLAG_ERL 0x0002 /* Error mode */