aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/cpu.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-04-06 14:39:03 +0200
committerAndreas Färber <afaerber@suse.de>2012-04-15 17:10:30 +0200
commit1d0cb67da9eff798420d0f6479fec6026c4dc41f (patch)
tree845b377b6f30e926697ff441da85fe9dd60fb9dc /target-ppc/cpu.h
parent12b1143b2807a5b760e477fac0e1028a9760b6c6 (diff)
downloadqemu-1d0cb67da9eff798420d0f6479fec6026c4dc41f.zip
qemu-1d0cb67da9eff798420d0f6479fec6026c4dc41f.tar.gz
qemu-1d0cb67da9eff798420d0f6479fec6026c4dc41f.tar.bz2
target-ppc: QOM'ify CPU
Embed CPUPPCState as first member of PowerPCCPU. Distinguish between "powerpc-cpu", "powerpc64-cpu" and "embedded-powerpc-cpu". Let CPUClass::reset() call cpu_state_reset() for now. Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target-ppc/cpu.h')
-rw-r--r--target-ppc/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h
index 1d5c602..84c9674 100644
--- a/target-ppc/cpu.h
+++ b/target-ppc/cpu.h
@@ -1096,6 +1096,8 @@ struct mmu_ctx_t {
};
#endif
+#include "cpu-qom.h"
+
/*****************************************************************************/
CPUPPCState *cpu_ppc_init (const char *cpu_model);
void ppc_translate_init(void);