]> git.proxmox.com Git - qemu.git/commitdiff
target-openrisc: TYPE_OPENRISC_CPU should be abstract
authorAndreas Färber <afaerber@suse.de>
Sun, 27 Jan 2013 21:27:17 +0000 (22:27 +0100)
committerAndreas Färber <afaerber@suse.de>
Fri, 1 Feb 2013 00:35:43 +0000 (01:35 +0100)
A basic assumption of CPU subtypes is that only specific models get
instantiated. A user is not supposed to instantiate an <arch>-cpu.
Suppress it via abstract = true, which also drops or32-cpu from
-cpu ? output.

Cc: qemu-stable@nongnu.org
Cc: Jia Liu <proljc@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-openrisc/cpu.c

index 54876d904ba9df2bba681682cc1486b49f5036b8..14f2cbe18eaabf3810360f5edcaaec38a2fe89b8 100644 (file)
@@ -159,7 +159,7 @@ static const TypeInfo openrisc_cpu_type_info = {
     .parent = TYPE_CPU,
     .instance_size = sizeof(OpenRISCCPU),
     .instance_init = openrisc_cpu_initfn,
-    .abstract = false,
+    .abstract = true,
     .class_size = sizeof(OpenRISCCPUClass),
     .class_init = openrisc_cpu_class_init,
 };