]> git.proxmox.com Git - qemu.git/commit
target-m68k: Detect attempt to instantiate non-CPU type in cpu_init()
authorAndreas Färber <afaerber@suse.de>
Mon, 21 Jan 2013 16:50:15 +0000 (17:50 +0100)
committerAndreas Färber <afaerber@suse.de>
Sun, 27 Jan 2013 13:52:05 +0000 (14:52 +0100)
commitbc5b2da32ba54d991e8669b14a771afb3a67f408
tree9e9d37acb0bf8fca8aeebe5722226cc16087d1d6
parent0e44a02301b081d36e686e767694a770c25160a2
target-m68k: Detect attempt to instantiate non-CPU type in cpu_init()

Consolidate model checking into a new m68k_cpu_class_by_name().

If the name matches an existing type, also check whether that type is
(a sub-type of) TYPE_M68K_CPU.

This fixes, e.g., -cpu ide-hd asserting.

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-m68k/cpu.c
target-m68k/helper.c