diff options
author | Andreas Färber <afaerber@suse.de> | 2012-04-15 00:35:50 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-04-30 11:32:10 +0200 |
commit | b9e7a234343501e2498680fd7bc0cd2aad947560 (patch) | |
tree | 9f2541fcf9b88cfc2ebc6d0b89e651b60d5d902a /target-m68k/cpu.h | |
parent | 2b4b49065670b46b424a329da5d35838180fc209 (diff) |
target-m68k: QOM'ify CPU
Embed CPUM68KState as first member of QOM M68kCPU.
Drop cpu_m68k_close() in favor of object_delete().
Let CPUClass::reset() call cpu_state_reset() for now.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Laurent Vivier <Laurent@Vivier.EU>
Tested-by: Laurent Vivier <Laurent@Vivier.EU>
Diffstat (limited to 'target-m68k/cpu.h')
-rw-r--r-- | target-m68k/cpu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target-m68k/cpu.h b/target-m68k/cpu.h index 6696e308f8..5e6ee50969 100644 --- a/target-m68k/cpu.h +++ b/target-m68k/cpu.h @@ -116,10 +116,11 @@ typedef struct CPUM68KState { uint32_t features; } CPUM68KState; +#include "cpu-qom.h" + void m68k_tcg_init(void); CPUM68KState *cpu_m68k_init(const char *cpu_model); int cpu_m68k_exec(CPUM68KState *s); -void cpu_m68k_close(CPUM68KState *s); void do_interrupt(CPUM68KState *env1); void do_interrupt_m68k_hardirq(CPUM68KState *env1); /* you can call this signal handler from your SIGBUS and SIGSEGV |