qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH v2 1/5] target-ppc: Drop cpu_ppc_close()


From: Andreas Färber
Subject: [Qemu-devel] [PATCH v2 1/5] target-ppc: Drop cpu_ppc_close()
Date: Fri, 6 Apr 2012 18:17:08 +0200

It is unused, so avoid QOM'ifying it unneededly.

Signed-off-by: Andreas Färber <address@hidden>
---
 target-ppc/cpu.h    |    1 -
 target-ppc/helper.c |    6 ------
 2 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h
index ca6f1cb..fc70644 100644
--- a/target-ppc/cpu.h
+++ b/target-ppc/cpu.h
@@ -1100,7 +1100,6 @@ struct mmu_ctx_t {
 CPUPPCState *cpu_ppc_init (const char *cpu_model);
 void ppc_translate_init(void);
 int cpu_ppc_exec (CPUPPCState *s);
-void cpu_ppc_close (CPUPPCState *s);
 /* you can call this signal handler from your SIGBUS and SIGSEGV
    signal handlers to inform the virtual CPU of exceptions. non zero
    is returned if the signal was handled by the virtual CPU.  */
diff --git a/target-ppc/helper.c b/target-ppc/helper.c
index 39dcc27..4cd7b0f 100644
--- a/target-ppc/helper.c
+++ b/target-ppc/helper.c
@@ -3214,9 +3214,3 @@ CPUPPCState *cpu_ppc_init (const char *cpu_model)
 
     return env;
 }
-
-void cpu_ppc_close (CPUPPCState *env)
-{
-    /* Should also remove all opcode tables... */
-    g_free(env);
-}
-- 
1.7.7




reply via email to

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