hw/arm/virt: use VirtMachineState.gic_version
commit055a7f2b0aefdd6b75bf2866171c4fe11f9a9e00
authorAndrew Jones <drjones@redhat.com>
Mon, 9 Jan 2017 11:40:22 +0000 (9 11:40 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 9 Jan 2017 11:40:22 +0000 (9 11:40 +0000)
tree7f9099ee761c38a8d79ddca88d9ae09df5df01ad
parent0127937b203a7fa87da34bf096faa23e7793cec6
hw/arm/virt: use VirtMachineState.gic_version

machvirt_init may need to probe for the gic version. If so, then
make sure the result is written to VirtMachineState. With the
state up to date, use it instead of a local variable. This is a
cleanup that prepares for VirtMachineState to be passed to functions
even outside hw/arm/virt.c

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 20170102200153.28864-7-drjones@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c