qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 3/4] pass the cpu definition to ppc_translate_init


From: Nathan Froyd
Subject: [Qemu-devel] [PATCH 3/4] pass the cpu definition to ppc_translate_init
Date: Sat, 28 Mar 2009 14:30:16 -0700

Signed-off-by: Nathan Froyd <address@hidden>
---
 target-ppc/cpu.h       |    2 +-
 target-ppc/helper.c    |    2 +-
 target-ppc/translate.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h
index 52180b6..dcd087b 100644
--- a/target-ppc/cpu.h
+++ b/target-ppc/cpu.h
@@ -846,7 +846,7 @@ struct mmu_ctx_t {
 
 /*****************************************************************************/
 CPUPPCState *cpu_ppc_init (const char *cpu_model);
-void ppc_translate_init(void);
+void ppc_translate_init(const ppc_def_t *def);
 int cpu_ppc_exec (CPUPPCState *s);
 void cpu_ppc_close (CPUPPCState *s);
 /* you can call this signal handler from your SIGBUS and SIGSEGV
diff --git a/target-ppc/helper.c b/target-ppc/helper.c
index 80b53eb..d9c4742 100644
--- a/target-ppc/helper.c
+++ b/target-ppc/helper.c
@@ -2824,7 +2824,7 @@ CPUPPCState *cpu_ppc_init (const char *cpu_model)
 
     env = qemu_mallocz(sizeof(CPUPPCState));
     cpu_exec_init(env);
-    ppc_translate_init();
+    ppc_translate_init(def);
     env->cpu_model_str = cpu_model;
     cpu_ppc_register_internal(env, def);
     cpu_ppc_reset(env);
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index b89d42f..412c8d0 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -78,7 +78,7 @@ static TCGv_i32 cpu_access_type;
 
 #include "gen-icount.h"
 
-void ppc_translate_init(void)
+void ppc_translate_init(const ppc_def_t *def)
 {
     int i;
     char* p;
-- 
1.6.0.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]