vexpress.c (08b8ba04) vexpress.c (7eecec7d)
1/*
2 * ARM Versatile Express emulation.
3 *
4 * Copyright (c) 2010 - 2011 B Labs Ltd.
5 * Copyright (c) 2011 Linaro Limited
6 * Written by Bahadir Balban, Amit Mahajan, Peter Maydell
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 738 unchanged lines hidden (view full) ---

747 VexpressMachineState *vms = VEXPRESS_MACHINE(obj);
748
749 /* EL3 is enabled by default on vexpress */
750 vms->secure = true;
751 object_property_add_bool(obj, "secure", vexpress_get_secure,
752 vexpress_set_secure, NULL);
753 object_property_set_description(obj, "secure",
754 "Set on/off to enable/disable the ARM "
1/*
2 * ARM Versatile Express emulation.
3 *
4 * Copyright (c) 2010 - 2011 B Labs Ltd.
5 * Copyright (c) 2011 Linaro Limited
6 * Written by Bahadir Balban, Amit Mahajan, Peter Maydell
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 738 unchanged lines hidden (view full) ---

747 VexpressMachineState *vms = VEXPRESS_MACHINE(obj);
748
749 /* EL3 is enabled by default on vexpress */
750 vms->secure = true;
751 object_property_add_bool(obj, "secure", vexpress_get_secure,
752 vexpress_set_secure, NULL);
753 object_property_set_description(obj, "secure",
754 "Set on/off to enable/disable the ARM "
755 "Security Extensions (TrustZone)",
756 NULL);
755 "Security Extensions (TrustZone)");
757}
758
759static void vexpress_a15_instance_init(Object *obj)
760{
761 VexpressMachineState *vms = VEXPRESS_MACHINE(obj);
762
763 /*
764 * For the vexpress-a15, EL2 is by default enabled if EL3 is,
765 * but can also be specifically set to on or off.
766 */
767 vms->virt = true;
768 object_property_add_bool(obj, "virtualization", vexpress_get_virt,
769 vexpress_set_virt, NULL);
770 object_property_set_description(obj, "virtualization",
771 "Set on/off to enable/disable the ARM "
772 "Virtualization Extensions "
756}
757
758static void vexpress_a15_instance_init(Object *obj)
759{
760 VexpressMachineState *vms = VEXPRESS_MACHINE(obj);
761
762 /*
763 * For the vexpress-a15, EL2 is by default enabled if EL3 is,
764 * but can also be specifically set to on or off.
765 */
766 vms->virt = true;
767 object_property_add_bool(obj, "virtualization", vexpress_get_virt,
768 vexpress_set_virt, NULL);
769 object_property_set_description(obj, "virtualization",
770 "Set on/off to enable/disable the ARM "
771 "Virtualization Extensions "
773 "(defaults to same as 'secure')",
774 NULL);
772 "(defaults to same as 'secure')");
775}
776
777static void vexpress_a9_instance_init(Object *obj)
778{
779 VexpressMachineState *vms = VEXPRESS_MACHINE(obj);
780
781 /* The A9 doesn't have the virt extensions */
782 vms->virt = false;

--- 67 unchanged lines hidden ---
773}
774
775static void vexpress_a9_instance_init(Object *obj)
776{
777 VexpressMachineState *vms = VEXPRESS_MACHINE(obj);
778
779 /* The A9 doesn't have the virt extensions */
780 vms->virt = false;

--- 67 unchanged lines hidden ---