hw/arm/virt: Introduce finalize_gic_version()
commit36bf4ec8c8bb943f5be99172cb0506e1b520096e
authorEric Auger <eric.auger@redhat.com>
Wed, 11 Mar 2020 13:16:15 +0000 (11 14:16 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Mar 2020 16:27:33 +0000 (12 16:27 +0000)
tree4446b7efeca590d233f73dcb6fa1459fa8c3528a
parentd04460e587c152c31e686bf7e0d6345419f649bc
hw/arm/virt: Introduce finalize_gic_version()

Let's move the code which freezes which gic-version to
be applied in a dedicated function. We also now set by
default the VIRT_GIC_VERSION_NO_SET. This eventually
turns into the legacy v2 choice in the finalize() function.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Message-id: 20200311131618.7187-4-eric.auger@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c
include/hw/arm/virt.h