aboutsummaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2022-04-08 15:15:48 +0100
committerPeter Maydell <peter.maydell@linaro.org>2022-04-22 14:44:53 +0100
commit5a389a9aec382c5093c6c143a5a6ed7809eadc12 (patch)
tree1bee02b20594ba39689a3d5897ad52fdf30a8c25 /docs/conf.py
parent445d5825dab3253f2d04d7e9749a06930f4a84d1 (diff)
downloadqemu-5a389a9aec382c5093c6c143a5a6ed7809eadc12.zip
qemu-5a389a9aec382c5093c6c143a5a6ed7809eadc12.tar.gz
qemu-5a389a9aec382c5093c6c143a5a6ed7809eadc12.tar.bz2
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/conf.py')
0 files changed, 0 insertions, 0 deletions