diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-26 10:38:39 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-26 10:38:39 +0000 |
commit | b5ff1b3127119aa430a6fd309591d584803b7b6e (patch) | |
tree | 5857296f0bebe0d8ee9e803b60a79d277493b7e0 /softmmu_header.h | |
parent | 0e43e99c045eb22415a7e52e2f88dbdb8e2d96f5 (diff) | |
download | qemu-b5ff1b3127119aa430a6fd309591d584803b7b6e.zip qemu-b5ff1b3127119aa430a6fd309591d584803b7b6e.tar.gz qemu-b5ff1b3127119aa430a6fd309591d584803b7b6e.tar.bz2 |
ARM system emulation (Paul Brook)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1661 c046a42c-6fe2-441c-8c8c-71466251a162
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 81c65dc..9f36f89 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 |