diff options
Diffstat (limited to 'softmmu_header.h')
-rw-r--r-- | softmmu_header.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/softmmu_header.h b/softmmu_header.h index 81c65dc870..9f36f890c7 100644 --- a/softmmu_header.h +++ b/softmmu_header.h @@ -59,6 +59,10 @@ #define CPU_MEM_INDEX ((env->hflags & MIPS_HFLAG_MODE) == MIPS_HFLAG_UM) #elif defined (TARGET_SPARC) #define CPU_MEM_INDEX ((env->psrs) == 0) +#elif defined (TARGET_ARM) +#define CPU_MEM_INDEX ((env->uncached_cpsr & CPSR_M) == ARM_CPU_MODE_USR) +#else +#error unsupported CPU #endif #define MMUSUFFIX _mmu @@ -72,6 +76,10 @@ #define CPU_MEM_INDEX ((env->hflags & MIPS_HFLAG_MODE) == MIPS_HFLAG_UM) #elif defined (TARGET_SPARC) #define CPU_MEM_INDEX ((env->psrs) == 0) +#elif defined (TARGET_ARM) +#define CPU_MEM_INDEX ((env->uncached_cpsr & CPSR_M) == ARM_CPU_MODE_USR) +#else +#error unsupported CPU #endif #define MMUSUFFIX _cmmu |