commit | bd039ce0094f3724a87a193c846ee8468ce652b0 | [log] [tgz] |
---|---|---|
author | Andreas Färber <afaerber@suse.de> | Wed Jan 23 11:17:14 2013 +0100 |
committer | Andreas Färber <afaerber@suse.de> | Sun Jan 27 14:52:05 2013 +0100 |
tree | 4ab008106e68fb70734fedd2a0e5a7961be63c1d | |
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>