diff options
author | Andreas Färber <afaerber@suse.de> | 2013-01-23 11:17:14 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-01-27 14:52:05 +0100 |
commit | bd039ce0094f3724a87a193c846ee8468ce652b0 (patch) | |
tree | 4ab008106e68fb70734fedd2a0e5a7961be63c1d /target-unicore32 | |
parent | bc5b2da32ba54d991e8669b14a771afb3a67f408 (diff) |
target-openrisc: Detect attempt to instantiate non-CPU type in cpu_init()
Consolidate model checking into a new openrisc_cpu_class_by_name().
If the name matches an existing type, also check whether that type is
actually (a sub-type of) TYPE_OPENRISC_CPU.
This fixes, e.g., -cpu open_eth asserting.
Cc: qemu-stable@nongnu.org
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-unicore32')
0 files changed, 0 insertions, 0 deletions