vexpress-a15: Register "virtualization" as class property
Class properties make QOM introspection simpler and easier, as they don't require an object to be instantiated. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20201111183823.283752-3-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
4433bb3d83
commit
fdfe5ba4a8
@ -767,12 +767,6 @@ static void vexpress_a15_instance_init(Object *obj)
|
||||
* but can also be specifically set to on or off.
|
||||
*/
|
||||
vms->virt = true;
|
||||
object_property_add_bool(obj, "virtualization", vexpress_get_virt,
|
||||
vexpress_set_virt);
|
||||
object_property_set_description(obj, "virtualization",
|
||||
"Set on/off to enable/disable the ARM "
|
||||
"Virtualization Extensions "
|
||||
"(defaults to same as 'secure')");
|
||||
}
|
||||
|
||||
static void vexpress_a9_instance_init(Object *obj)
|
||||
@ -820,6 +814,14 @@ static void vexpress_a15_class_init(ObjectClass *oc, void *data)
|
||||
mc->default_cpu_type = ARM_CPU_TYPE_NAME("cortex-a15");
|
||||
|
||||
vmc->daughterboard = &a15_daughterboard;
|
||||
|
||||
object_class_property_add_bool(oc, "virtualization", vexpress_get_virt,
|
||||
vexpress_set_virt);
|
||||
object_class_property_set_description(oc, "virtualization",
|
||||
"Set on/off to enable/disable the ARM "
|
||||
"Virtualization Extensions "
|
||||
"(defaults to same as 'secure')");
|
||||
|
||||
}
|
||||
|
||||
static const TypeInfo vexpress_info = {
|
||||
|
Loading…
Reference in New Issue
Block a user