summaryrefslogtreecommitdiffstats
path: root/docs/system
diff options
context:
space:
mode:
authorPeter Maydell2022-04-08 16:15:48 +0200
committerPeter Maydell2022-04-22 15:44:53 +0200
commit5a389a9aec382c5093c6c143a5a6ed7809eadc12 (patch)
tree1bee02b20594ba39689a3d5897ad52fdf30a8c25 /docs/system
parenthw/intc/arm_gicv3: Allow 'revision' property to be set to 4 (diff)
downloadqemu-5a389a9aec382c5093c6c143a5a6ed7809eadc12.tar.gz
qemu-5a389a9aec382c5093c6c143a5a6ed7809eadc12.tar.xz
qemu-5a389a9aec382c5093c6c143a5a6ed7809eadc12.zip
hw/arm/virt: Use VIRT_GIC_VERSION_* enum values in create_gic()
Everywhere we need to check which GIC version we're using, we look at vms->gic_version and use the VIRT_GIC_VERSION_* enum values, except in create_gic(), which copies vms->gic_version into a local 'int' variable and makes direct comparisons against values 2 and 3. For consistency, change this function to check the GIC version the same way we do elsewhere. This includes not implicitly relying on the enumeration type values happening to match the integer 'revision' values the GIC device object wants. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220408141550.1271295-40-peter.maydell@linaro.org
Diffstat (limited to 'docs/system')
0 files changed, 0 insertions, 0 deletions