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

Check in alpha_cpu_class_by_name() whether the type found is actually
(a sub-type of) TYPE_ALPHA_CPU.

This fixes, e.g., -cpu typhoon-pcihost asserting.

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