hw/arm/virt: Add 2.11 machine type
Add virt-2.11 machine type. Signed-off-by: Eric Auger <eric.auger@redhat.com> Message-id: 1511516626-21178-1-git-send-email-eric.auger@redhat.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
38e83b6bed
commit
79283dda30
@ -1618,7 +1618,7 @@ static void machvirt_machine_init(void)
|
||||
}
|
||||
type_init(machvirt_machine_init);
|
||||
|
||||
static void virt_2_10_instance_init(Object *obj)
|
||||
static void virt_2_11_instance_init(Object *obj)
|
||||
{
|
||||
VirtMachineState *vms = VIRT_MACHINE(obj);
|
||||
VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(vms);
|
||||
@ -1678,10 +1678,25 @@ static void virt_2_10_instance_init(Object *obj)
|
||||
vms->irqmap = a15irqmap;
|
||||
}
|
||||
|
||||
static void virt_machine_2_10_options(MachineClass *mc)
|
||||
static void virt_machine_2_11_options(MachineClass *mc)
|
||||
{
|
||||
}
|
||||
DEFINE_VIRT_MACHINE_AS_LATEST(2, 10)
|
||||
DEFINE_VIRT_MACHINE_AS_LATEST(2, 11)
|
||||
|
||||
#define VIRT_COMPAT_2_10 \
|
||||
HW_COMPAT_2_10
|
||||
|
||||
static void virt_2_10_instance_init(Object *obj)
|
||||
{
|
||||
virt_2_11_instance_init(obj);
|
||||
}
|
||||
|
||||
static void virt_machine_2_10_options(MachineClass *mc)
|
||||
{
|
||||
virt_machine_2_11_options(mc);
|
||||
SET_MACHINE_COMPAT(mc, VIRT_COMPAT_2_10);
|
||||
}
|
||||
DEFINE_VIRT_MACHINE(2, 10)
|
||||
|
||||
#define VIRT_COMPAT_2_9 \
|
||||
HW_COMPAT_2_9
|
||||
|
Loading…
Reference in New Issue
Block a user