diff options
author | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-17 02:16:14 +0000 |
---|---|---|
committer | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-17 02:16:14 +0000 |
commit | 7820dbf3f0d8ebc44b8dfc0853c8a2c4bd6aea8e (patch) | |
tree | a427eb3ca9dd8b74484ad3243e046e522c98c57e /target-ppc/cpu.h | |
parent | 7b62a955047934bab158e84ecb63cb432c193ace (diff) | |
download | hqemu-7820dbf3f0d8ebc44b8dfc0853c8a2c4bd6aea8e.zip hqemu-7820dbf3f0d8ebc44b8dfc0853c8a2c4bd6aea8e.tar.gz |
Make the PowerPC MMU model, exception model and input bus model
typedefed enums.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3660 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/cpu.h')
-rw-r--r-- | target-ppc/cpu.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index f249522..3baab67 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -89,7 +89,8 @@ typedef uint32_t ppc_gpr_t; /*****************************************************************************/ /* MMU model */ -enum { +typedef enum powerpc_mmu_t powerpc_mmu_t; +enum powerpc_mmu_t { POWERPC_MMU_UNKNOWN = 0, /* Standard 32 bits PowerPC MMU */ POWERPC_MMU_32B, @@ -117,7 +118,8 @@ enum { /*****************************************************************************/ /* Exception model */ -enum { +typedef enum powerpc_excp_t powerpc_excp_t; +enum powerpc_excp_t { POWERPC_EXCP_UNKNOWN = 0, /* Standard PowerPC exception model */ POWERPC_EXCP_STD, @@ -263,7 +265,8 @@ enum { /*****************************************************************************/ /* Input pins model */ -enum { +typedef enum powerpc_input_t powerpc_input_t; +enum powerpc_input_t { PPC_FLAGS_INPUT_UNKNOWN = 0, /* PowerPC 6xx bus */ PPC_FLAGS_INPUT_6xx, @@ -609,10 +612,9 @@ struct CPUPPCState { /* Those resources are used during exception processing */ /* CPU model definition */ target_ulong msr_mask; - uint8_t mmu_model; - uint8_t excp_model; - uint8_t bus_model; - uint8_t pad; + powerpc_mmu_t mmu_model; + powerpc_excp_t excp_model; + powerpc_input_t bus_model; int bfd_mach; uint32_t flags; |