diff options
author | Andreas Färber <afaerber@suse.de> | 2013-01-18 14:03:58 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-02-16 14:50:59 +0100 |
commit | c7937d9f9a99d8cc2848e85f608d89c6f326daf0 (patch) | |
tree | 04d29e340e5d1cb27feae144639e07a255440090 /target-m68k/helper.c | |
parent | f3273ba643f2d0221492381b24bbc35fb6089a48 (diff) |
target-m68k: Return M68kCPU from cpu_m68k_init()
Turn cpu_init() into a static inline function for backwards
compatibility.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-m68k/helper.c')
-rw-r--r-- | target-m68k/helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-m68k/helper.c b/target-m68k/helper.c index 6030807753..7d3fd944be 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @@ -98,7 +98,7 @@ static int fpu_gdb_set_reg(CPUM68KState *env, uint8_t *mem_buf, int n) return 0; } -CPUM68KState *cpu_m68k_init(const char *cpu_model) +M68kCPU *cpu_m68k_init(const char *cpu_model) { M68kCPU *cpu; CPUM68KState *env; @@ -116,7 +116,7 @@ CPUM68KState *cpu_m68k_init(const char *cpu_model) object_property_set_bool(OBJECT(cpu), true, "realized", NULL); - return env; + return cpu; } void m68k_cpu_init_gdb(M68kCPU *cpu) |