diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2022-04-08 15:15:48 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2022-04-22 14:44:53 +0100 |
| commit | 5a389a9aec382c5093c6c143a5a6ed7809eadc12 (patch) | |
| tree | 1bee02b20594ba39689a3d5897ad52fdf30a8c25 /linux-user/arm/cpu_loop.c | |
| parent | 445d5825dab3253f2d04d7e9749a06930f4a84d1 (diff) | |
| download | focaccia-qemu-5a389a9aec382c5093c6c143a5a6ed7809eadc12.tar.gz focaccia-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 'linux-user/arm/cpu_loop.c')
0 files changed, 0 insertions, 0 deletions