target-ppc: Register all types for TARGET_PPCEMB
authorAndreas Färber <afaerber@suse.de>
Sun, 17 Feb 2013 23:16:44 +0000 (23:16 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 8 Mar 2013 20:04:51 +0000 (21:04 +0100)
commit4d7fb187e07b35dcbe51e906927a94ed691e0c7a
treec836c9711f58dd984f705e4f79c1a1f0d9f7dac2
parent53116ebfc98b72a00297255e216fac87c65e23a5
target-ppc: Register all types for TARGET_PPCEMB

Don't attempt to suppress registration of CPU types, since the criteria
is actually a property of the class and should thus become a field.
Since we can't check a field set in a class_init function before
registering the type that leads to execution of that function, guard the
-cpu class lookup instead and suppress exposing these classes in -cpu ?
and in QMP.

In case someone tries to hot-add an incompatible CPU via device_add,
error out in realize.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate_init.c