diff options
author | Alex Bennée | 2022-11-21 12:45:13 +0100 |
---|---|---|
committer | Peter Maydell | 2022-11-21 12:45:13 +0100 |
commit | 69e7e60d011846f066af97589660eef52898519a (patch) | |
tree | 68895e170c6698c4d74899a0d917c8d06baa828d /hw/intc/m68k_irqc.c | |
parent | hw/sd: Fix sun4i allwinner-sdhost for U-Boot (diff) | |
download | qemu-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/m68k_irqc.c')
0 files changed, 0 insertions, 0 deletions