[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/4] move ppc_def_t definition to cpu.h
From: |
Nathan Froyd |
Subject: |
[Qemu-devel] [PATCH 2/4] move ppc_def_t definition to cpu.h |
Date: |
Sat, 28 Mar 2009 14:30:15 -0700 |
Signed-off-by: Nathan Froyd <address@hidden>
---
target-ppc/cpu.h | 15 +++++++++++++++
target-ppc/translate_init.c | 15 ---------------
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h
index e11af60..52180b6 100644
--- a/target-ppc/cpu.h
+++ b/target-ppc/cpu.h
@@ -433,6 +433,21 @@ typedef struct ppc_dcr_t ppc_dcr_t;
typedef union ppc_avr_t ppc_avr_t;
typedef union ppc_tlb_t ppc_tlb_t;
+struct ppc_def_t {
+ const char *name;
+ uint32_t pvr;
+ uint32_t svr;
+ uint64_t insns_flags;
+ uint64_t msr_mask;
+ powerpc_mmu_t mmu_model;
+ powerpc_excp_t excp_model;
+ powerpc_input_t bus_model;
+ uint32_t flags;
+ int bfd_mach;
+ void (*init_proc)(CPUPPCState *env);
+ int (*check_pow)(CPUPPCState *env);
+};
+
/* SPR access micro-ops generations callbacks */
struct ppc_spr_t {
void (*uea_read)(void *opaque, int gpr_num, int spr_num);
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 56d8d93..3593192 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -33,21 +33,6 @@
#define TODO_USER_ONLY 1
#endif
-struct ppc_def_t {
- const char *name;
- uint32_t pvr;
- uint32_t svr;
- uint64_t insns_flags;
- uint64_t msr_mask;
- powerpc_mmu_t mmu_model;
- powerpc_excp_t excp_model;
- powerpc_input_t bus_model;
- uint32_t flags;
- int bfd_mach;
- void (*init_proc)(CPUPPCState *env);
- int (*check_pow)(CPUPPCState *env);
-};
-
/* For user-mode emulation, we don't emulate any IRQ controller */
#if defined(CONFIG_USER_ONLY)
#define PPC_IRQ_INIT_FN(name) \
--
1.6.0.5