From e95c8d51c2a47d7ccb422f83446cb91a18f8f37d Mon Sep 17 00:00:00 2001 From: bellard Date: Thu, 30 Sep 2004 22:22:08 +0000 Subject: full system SPARC emulation (Blue Swirl) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1087 c046a42c-6fe2-441c-8c8c-71466251a162 --- softmmu_header.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'softmmu_header.h') diff --git a/softmmu_header.h b/softmmu_header.h index 0bbc368..074d090 100644 --- a/softmmu_header.h +++ b/softmmu_header.h @@ -55,6 +55,8 @@ #define CPU_MEM_INDEX ((env->hflags & HF_CPL_MASK) == 3) #elif defined (TARGET_PPC) #define CPU_MEM_INDEX (msr_pr) +#elif defined (TARGET_SPARC) +#define CPU_MEM_INDEX ((env->psrs) == 0) #endif #define MMUSUFFIX _mmu @@ -64,6 +66,8 @@ #define CPU_MEM_INDEX ((env->hflags & HF_CPL_MASK) == 3) #elif defined (TARGET_PPC) #define CPU_MEM_INDEX (msr_pr) +#elif defined (TARGET_SPARC) +#define CPU_MEM_INDEX ((env->psrs) == 0) #endif #define MMUSUFFIX _cmmu -- cgit v1.1