diff options
author | Andreas Färber <afaerber@suse.de> | 2013-01-27 22:27:17 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-02-01 01:35:43 +0100 |
commit | bc755a00b1fd58ac9bfa316237134958489f0145 (patch) | |
tree | 8cf0330ae7a7e24ff01ff347b5a14ba308148265 /target-openrisc/cpu.c | |
parent | 7a9f812b381639b96a020bdb1f4783f11f886754 (diff) |
target-openrisc: TYPE_OPENRISC_CPU should be abstract
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>
Diffstat (limited to 'target-openrisc/cpu.c')
-rw-r--r-- | target-openrisc/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-openrisc/cpu.c b/target-openrisc/cpu.c index 54876d904b..14f2cbe18e 100644 --- a/target-openrisc/cpu.c +++ b/target-openrisc/cpu.c @@ -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, }; |