From ea3e9847408131abc840240bd61e892d28459452 Mon Sep 17 00:00:00 2001 From: Peter Crosthwaite Date: Thu, 18 Jun 2015 10:24:55 -0700 Subject: cpu-exec: Purge all uses of ENV_GET_CPU() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove un-needed usages of ENV_GET_CPU() by converting the APIs to use CPUState pointers and retrieving the env_ptr as minimally needed. Scripted conversion for target-* change: for I in target-*/cpu.h; do sed -i \ 's/\(^int cpu_[^_]*_exec(\)[^ ][^ ]* \*s);$/\1CPUState *cpu);/' \ $I; done Signed-off-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- target-sh4/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-sh4') diff --git a/target-sh4/cpu.h b/target-sh4/cpu.h index 4a027a6..34bb3d7 100644 --- a/target-sh4/cpu.h +++ b/target-sh4/cpu.h @@ -193,7 +193,7 @@ typedef struct CPUSH4State { void sh4_translate_init(void); SuperHCPU *cpu_sh4_init(const char *cpu_model); -int cpu_sh4_exec(CPUSH4State * s); +int cpu_sh4_exec(CPUState *s); int cpu_sh4_signal_handler(int host_signum, void *pinfo, void *puc); int superh_cpu_handle_mmu_fault(CPUState *cpu, vaddr address, int rw, -- cgit v1.1