Commit 56b194039eb3a2a9d239662c004367c726a5ab4f

Authored by pbrook
1 parent 98c1b82b

Rename MIPS_HFLAG(S)_TMASK (Thiemo Seufer).


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1775 c046a42c-6fe2-441c-8c8c-71466251a162
cpu-exec.c
@@ -187,7 +187,7 @@ static inline TranslationBlock *tb_find_fast(void) @@ -187,7 +187,7 @@ static inline TranslationBlock *tb_find_fast(void)
187 cs_base = 0; 187 cs_base = 0;
188 pc = env->nip; 188 pc = env->nip;
189 #elif defined(TARGET_MIPS) 189 #elif defined(TARGET_MIPS)
190 - flags = env->hflags & (MIPS_HFLAGS_TMASK | MIPS_HFLAG_BMASK); 190 + flags = env->hflags & (MIPS_HFLAG_TMASK | MIPS_HFLAG_BMASK);
191 cs_base = 0; 191 cs_base = 0;
192 pc = env->PC; 192 pc = env->PC;
193 #else 193 #else
target-mips/cpu.h
@@ -149,7 +149,7 @@ struct CPUMIPSState { @@ -149,7 +149,7 @@ struct CPUMIPSState {
149 int user_mode_only; /* user mode only simulation */ 149 int user_mode_only; /* user mode only simulation */
150 uint32_t hflags; /* CPU State */ 150 uint32_t hflags; /* CPU State */
151 /* TMASK defines different execution modes */ 151 /* TMASK defines different execution modes */
152 -#define MIPS_HFLAGS_TMASK 0x00FF 152 +#define MIPS_HFLAG_TMASK 0x007F
153 #define MIPS_HFLAG_MODE 0x001F /* execution modes */ 153 #define MIPS_HFLAG_MODE 0x001F /* execution modes */
154 #define MIPS_HFLAG_UM 0x0001 /* user mode */ 154 #define MIPS_HFLAG_UM 0x0001 /* user mode */
155 #define MIPS_HFLAG_ERL 0x0002 /* Error mode */ 155 #define MIPS_HFLAG_ERL 0x0002 /* Error mode */