diff options
author | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-16 14:11:28 +0000 |
---|---|---|
committer | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-16 14:11:28 +0000 |
commit | 7863667f35531557f10e7f920e4361f621a14e3f (patch) | |
tree | 87b0adcf62fc8f3f7cb3f331fad68f7d5b39a6eb /target-ppc/cpu.h | |
parent | 2f6196984b98fe2a852b1b5254756f1614eb7635 (diff) |
Always make PowerPC hypervisor mode memory accesses and instructions
available for full system emulation, then removing all #if TARGET_PPC64H
from micro-ops and code translator.
Add new macros to dramatically simplify memory access tables definitions
in target-ppc/translate.c.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3654 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/cpu.h')
-rw-r--r-- | target-ppc/cpu.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index bb50c1df66..d40bb40703 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -305,11 +305,9 @@ struct ppc_spr_t { #if !defined(CONFIG_USER_ONLY) void (*oea_read)(void *opaque, int spr_num); void (*oea_write)(void *opaque, int spr_num); -#if defined(TARGET_PPC64H) void (*hea_read)(void *opaque, int spr_num); void (*hea_write)(void *opaque, int spr_num); #endif -#endif const unsigned char *name; }; @@ -510,11 +508,7 @@ enum { /*****************************************************************************/ /* The whole PowerPC CPU context */ -#if defined(TARGET_PPC64H) #define NB_MMU_MODES 3 -#else -#define NB_MMU_MODES 2 -#endif struct CPUPPCState { /* First are the most commonly used resources @@ -783,9 +777,7 @@ int ppc_dcr_write (ppc_dcr_t *dcr_env, int dcrn, target_ulong val); /* MMU modes definitions */ #define MMU_MODE0_SUFFIX _user #define MMU_MODE1_SUFFIX _kernel -#if defined(TARGET_PPC64H) #define MMU_MODE2_SUFFIX _hypv -#endif #define MMU_USER_IDX 0 static inline int cpu_mmu_index (CPUState *env) { |