]> git.proxmox.com Git - mirror_qemu.git/commit
hw/intc: clean-up access to GIC multi-byte registers
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 21 Nov 2022 11:45:13 +0000 (11:45 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Nov 2022 11:45:13 +0000 (11:45 +0000)
commit69e7e60d011846f066af97589660eef52898519a
tree68895e170c6698c4d74899a0d917c8d06baa828d
parent93e2da36ed944d05e78905e95983a44624ed064c
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>
hw/intc/arm_gic.c