diff options
author | Andreas Färber <afaerber@suse.de> | 2012-05-04 18:35:09 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-06-04 23:00:42 +0200 |
commit | 445e957194807aa9eb1d02c23430dbb0c6bac34e (patch) | |
tree | 22a68ba7fcfb505729989f08ced42d9e0d0bc8ff /target-sh4/translate.c | |
parent | e5fe7a34d421eb97fc3b69f58d8e91f4679ffb41 (diff) | |
download | qemu-445e957194807aa9eb1d02c23430dbb0c6bac34e.zip qemu-445e957194807aa9eb1d02c23430dbb0c6bac34e.tar.gz qemu-445e957194807aa9eb1d02c23430dbb0c6bac34e.tar.bz2 |
target-sh4: Let cpu_sh4_init() return SuperHCPU
Turn cpu_init macro into a static inline function returning
CPUSH4State for backwards compatibility.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-sh4/translate.c')
-rw-r--r-- | target-sh4/translate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c index d25f0c5..7d35b84 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -247,7 +247,7 @@ static void cpu_register(CPUSH4State *env, const sh4_def_t *def) env->id = def->id; } -CPUSH4State *cpu_sh4_init(const char *cpu_model) +SuperHCPU *cpu_sh4_init(const char *cpu_model) { SuperHCPU *cpu; CPUSH4State *env; @@ -264,7 +264,7 @@ CPUSH4State *cpu_sh4_init(const char *cpu_model) cpu_reset(CPU(cpu)); cpu_register(env, def); qemu_init_vcpu(env); - return env; + return cpu; } static void gen_goto_tb(DisasContext * ctx, int n, target_ulong dest) |