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
This commit is contained in:
parent
7b62a95504
commit
7820dbf3f0
|
@ -89,7 +89,8 @@ typedef uint32_t ppc_gpr_t;
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* MMU model */
|
/* MMU model */
|
||||||
enum {
|
typedef enum powerpc_mmu_t powerpc_mmu_t;
|
||||||
|
enum powerpc_mmu_t {
|
||||||
POWERPC_MMU_UNKNOWN = 0,
|
POWERPC_MMU_UNKNOWN = 0,
|
||||||
/* Standard 32 bits PowerPC MMU */
|
/* Standard 32 bits PowerPC MMU */
|
||||||
POWERPC_MMU_32B,
|
POWERPC_MMU_32B,
|
||||||
|
@ -117,7 +118,8 @@ enum {
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* Exception model */
|
/* Exception model */
|
||||||
enum {
|
typedef enum powerpc_excp_t powerpc_excp_t;
|
||||||
|
enum powerpc_excp_t {
|
||||||
POWERPC_EXCP_UNKNOWN = 0,
|
POWERPC_EXCP_UNKNOWN = 0,
|
||||||
/* Standard PowerPC exception model */
|
/* Standard PowerPC exception model */
|
||||||
POWERPC_EXCP_STD,
|
POWERPC_EXCP_STD,
|
||||||
|
@ -263,7 +265,8 @@ enum {
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* Input pins model */
|
/* Input pins model */
|
||||||
enum {
|
typedef enum powerpc_input_t powerpc_input_t;
|
||||||
|
enum powerpc_input_t {
|
||||||
PPC_FLAGS_INPUT_UNKNOWN = 0,
|
PPC_FLAGS_INPUT_UNKNOWN = 0,
|
||||||
/* PowerPC 6xx bus */
|
/* PowerPC 6xx bus */
|
||||||
PPC_FLAGS_INPUT_6xx,
|
PPC_FLAGS_INPUT_6xx,
|
||||||
|
@ -609,10 +612,9 @@ struct CPUPPCState {
|
||||||
/* Those resources are used during exception processing */
|
/* Those resources are used during exception processing */
|
||||||
/* CPU model definition */
|
/* CPU model definition */
|
||||||
target_ulong msr_mask;
|
target_ulong msr_mask;
|
||||||
uint8_t mmu_model;
|
powerpc_mmu_t mmu_model;
|
||||||
uint8_t excp_model;
|
powerpc_excp_t excp_model;
|
||||||
uint8_t bus_model;
|
powerpc_input_t bus_model;
|
||||||
uint8_t pad;
|
|
||||||
int bfd_mach;
|
int bfd_mach;
|
||||||
uint32_t flags;
|
uint32_t flags;
|
||||||
|
|
||||||
|
|
|
@ -35,10 +35,9 @@ struct ppc_def_t {
|
||||||
uint32_t pvr;
|
uint32_t pvr;
|
||||||
uint64_t insns_flags;
|
uint64_t insns_flags;
|
||||||
uint64_t msr_mask;
|
uint64_t msr_mask;
|
||||||
uint8_t mmu_model;
|
powerpc_mmu_t mmu_model;
|
||||||
uint8_t excp_model;
|
powerpc_excp_t excp_model;
|
||||||
uint8_t bus_model;
|
powerpc_input_t bus_model;
|
||||||
uint8_t pad;
|
|
||||||
uint32_t flags;
|
uint32_t flags;
|
||||||
int bfd_mach;
|
int bfd_mach;
|
||||||
void (*init_proc)(CPUPPCState *env);
|
void (*init_proc)(CPUPPCState *env);
|
||||||
|
|
Loading…
Reference in a new issue