summaryrefslogtreecommitdiff
path: root/target-microblaze/cpu.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-04-12 02:17:53 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2012-04-24 16:04:56 +0200
commitb77f98cadad07a0863a6bfe1492c64f3a16ccbc5 (patch)
treefd7f38f6ce885763259245a9564028e369a8e788 /target-microblaze/cpu.h
parentaa0d1267b3aa69c87fbd37a896bdd3f44d45c3f3 (diff)
downloadqemu-b77f98cadad07a0863a6bfe1492c64f3a16ccbc5.tar.gz
qemu-b77f98cadad07a0863a6bfe1492c64f3a16ccbc5.tar.bz2
qemu-b77f98cadad07a0863a6bfe1492c64f3a16ccbc5.zip
target-microblaze: QOM'ify CPU
Embed CPUMBState as first member of QOM MicroBlazeCPU. Let CPUClass::reset() call cpu_state_reset() for now. Signed-off-by: Andreas Färber <afaerber@suse.de> Tested-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com> [AF: Updated cpu.c to include cpu-qom.h indirectly via cpu.h]
Diffstat (limited to 'target-microblaze/cpu.h')
-rw-r--r--target-microblaze/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h
index 33b23c2fd7..718d5bba8d 100644
--- a/target-microblaze/cpu.h
+++ b/target-microblaze/cpu.h
@@ -266,6 +266,8 @@ struct CPUMBState {
CPU_COMMON
};
+#include "cpu-qom.h"
+
CPUMBState *cpu_mb_init(const char *cpu_model);
int cpu_mb_exec(CPUMBState *s);
void cpu_mb_close(CPUMBState *s);