diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-09-30 22:22:08 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-09-30 22:22:08 +0000 |
commit | e95c8d51c2a47d7ccb422f83446cb91a18f8f37d (patch) | |
tree | 8a8e42f76ff8a7a6f02bda71f52306230e575c9c /softmmu_header.h | |
parent | 4971b827da65526bbe3e6a2ee2d9ba182f056ac5 (diff) |
full system SPARC emulation (Blue Swirl)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1087 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'softmmu_header.h')
-rw-r--r-- | softmmu_header.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/softmmu_header.h b/softmmu_header.h index 0bbc3681cc..074d090ba2 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 |