]> Git Repo - qemu.git/blobdiff - target-sh4/cpu.h
sh4/r2d: convert to new MMIO accessor style
[qemu.git] / target-sh4 / cpu.h
index b2fb1990dd9c27f07b5d448b6862d7b47e1ea980..c8dea6c020d7fe5a18794d523d58abfae72bd91a 100644 (file)
@@ -221,14 +221,7 @@ int cpu_sh4_is_cached(CPUSH4State * env, target_ulong addr);
 
 void cpu_load_tlb(CPUSH4State * env);
 
-static inline CPUSH4State *cpu_init(const char *cpu_model)
-{
-    SuperHCPU *cpu = cpu_sh4_init(cpu_model);
-    if (cpu == NULL) {
-        return NULL;
-    }
-    return &cpu->env;
-}
+#define cpu_init(cpu_model) CPU(cpu_sh4_init(cpu_model))
 
 #define cpu_exec cpu_sh4_exec
 #define cpu_gen_code cpu_sh4_gen_code
This page took 0.023679 seconds and 4 git commands to generate.