aboutsummaryrefslogtreecommitdiff
path: root/target-sh4/cpu.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-02-11 17:26:17 +0100
committerAndreas Färber <afaerber@suse.de>2012-04-30 11:32:10 +0200
commit339894bec9bb99aaeb695173006322c37a102408 (patch)
treea9e3aca247d098965ef4f00e2768e91b69c44f4a /target-sh4/cpu.h
parent2c9b7d1ab4e06ab742f669366c70d97e54598c36 (diff)
downloadqemu-339894bec9bb99aaeb695173006322c37a102408.zip
qemu-339894bec9bb99aaeb695173006322c37a102408.tar.gz
qemu-339894bec9bb99aaeb695173006322c37a102408.tar.bz2
target-sh4: QOM'ify CPU
Embed CPUSH4State as first member of SuperHCPU. Let CPUClass::reset() call cpu_state_reset() for now. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-sh4/cpu.h')
-rw-r--r--target-sh4/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-sh4/cpu.h b/target-sh4/cpu.h
index 965536d..b6768f1 100644
--- a/target-sh4/cpu.h
+++ b/target-sh4/cpu.h
@@ -189,6 +189,8 @@ typedef struct CPUSH4State {
memory_content **movcal_backup_tail;
} CPUSH4State;
+#include "cpu-qom.h"
+
CPUSH4State *cpu_sh4_init(const char *cpu_model);
int cpu_sh4_exec(CPUSH4State * s);
int cpu_sh4_signal_handler(int host_signum, void *pinfo,