summaryrefslogtreecommitdiffstats
path: root/hw/intc/grlib_irqmp.c
diff options
context:
space:
mode:
authorAlex Bennée2022-11-21 12:45:13 +0100
committerPeter Maydell2022-11-21 12:45:13 +0100
commit69e7e60d011846f066af97589660eef52898519a (patch)
tree68895e170c6698c4d74899a0d917c8d06baa828d /hw/intc/grlib_irqmp.c
parenthw/sd: Fix sun4i allwinner-sdhost for U-Boot (diff)
downloadqemu-69e7e60d011846f066af97589660eef52898519a.tar.gz
qemu-69e7e60d011846f066af97589660eef52898519a.tar.xz
qemu-69e7e60d011846f066af97589660eef52898519a.zip
hw/intc: clean-up access to GIC multi-byte registers
gic_dist_readb was returning a word value which just happened to work as a result of the way we OR the data together. Lets fix it so only the explicit byte is returned for each part of GICD_TYPER. I've changed the return type to uint8_t although the overflow is only detected with an explicit -Wconversion. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/intc/grlib_irqmp.c')
0 files changed, 0 insertions, 0 deletions