Commit 78749ba859684748366b5de630ad41bd1b2d60a2

Authored by ths
1 parent 5e755519

Fix usermode check, thanks Aurelien Jarno.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2897 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-mips/cpu.h
@@ -256,7 +256,7 @@ struct CPUMIPSState { @@ -256,7 +256,7 @@ struct CPUMIPSState {
256 uint32_t hflags; /* CPU State */ 256 uint32_t hflags; /* CPU State */
257 /* TMASK defines different execution modes */ 257 /* TMASK defines different execution modes */
258 #define MIPS_HFLAG_TMASK 0x007F 258 #define MIPS_HFLAG_TMASK 0x007F
259 -#define MIPS_HFLAG_MODE 0x001F /* execution modes */ 259 +#define MIPS_HFLAG_MODE 0x0007 /* execution modes */
260 #define MIPS_HFLAG_UM 0x0001 /* user mode */ 260 #define MIPS_HFLAG_UM 0x0001 /* user mode */
261 #define MIPS_HFLAG_DM 0x0002 /* Debug mode */ 261 #define MIPS_HFLAG_DM 0x0002 /* Debug mode */
262 #define MIPS_HFLAG_SM 0x0004 /* Supervisor mode */ 262 #define MIPS_HFLAG_SM 0x0004 /* Supervisor mode */