aboutsummaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-01-21 18:26:21 +0100
committerAndreas Färber <afaerber@suse.de>2013-01-27 14:52:04 +0100
commit2b8c27549917b3e07fec5807dbd2b6528ceb4efa (patch)
tree20fca5c542c32daf4d8479114d76efdcd232f0a1 /target-ppc
parent2c728dfef56d468a6a80b4dacdfb7109220d2546 (diff)
downloadqemu-2b8c27549917b3e07fec5807dbd2b6528ceb4efa.zip
qemu-2b8c27549917b3e07fec5807dbd2b6528ceb4efa.tar.gz
qemu-2b8c27549917b3e07fec5807dbd2b6528ceb4efa.tar.bz2
cpu: Add model resolution support to CPUClass
Introduce CPUClass::class_by_name and add a default implementation. Hook up the alpha and ppc implementations. Introduce a wrapper function cpu_class_by_name(). Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/translate_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 4f767c9..e143af5 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -10578,6 +10578,8 @@ static void ppc_cpu_class_init(ObjectClass *oc, void *data)
pcc->parent_reset = cc->reset;
cc->reset = ppc_cpu_reset;
+
+ cc->class_by_name = ppc_cpu_class_by_name;
}
static const TypeInfo ppc_cpu_type_info = {