]> git.proxmox.com Git - qemu.git/commit
target-arm: Detect attempt to instantiate non-CPU type in cpu_init()
authorAndreas Färber <afaerber@suse.de>
Mon, 21 Jan 2013 15:11:43 +0000 (16:11 +0100)
committerAndreas Färber <afaerber@suse.de>
Sun, 27 Jan 2013 13:52:04 +0000 (14:52 +0100)
commit5900d6b2d59875c9b11e4d8cead6d9ddaa9eb787
tree9b5c71ede4dca42a68df7da48a8a057204171d7b
parent2b8c27549917b3e07fec5807dbd2b6528ceb4efa
target-arm: Detect attempt to instantiate non-CPU type in cpu_init()

Consolidate model checking into a new arm_cpu_class_by_name().

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

This fixes, e.g., -cpu tmp105 asserting.

Cc: qemu-stable <qemu-stable@nongnu.org>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-arm/cpu.c
target-arm/helper.c