summary refs log tree commit diff stats
path: root/hw/rtc/goldfish_rtc.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2022-01-22 18:24:40 +0000
committerPeter Maydell <peter.maydell@linaro.org>2022-01-28 14:29:47 +0000
commit7e062b98a2541ca9a632160aadbe8574c8bdce24 (patch)
tree2c5922ba768e162dd3079f198bafca5ead0bf066 /hw/rtc/goldfish_rtc.c
parent1611956bce06b0721ea949e24c089ef22967672a (diff)
downloadfocaccia-qemu-7e062b98a2541ca9a632160aadbe8574c8bdce24.tar.gz
focaccia-qemu-7e062b98a2541ca9a632160aadbe8574c8bdce24.zip
hw/intc/arm_gicv3_its: Provide read accessor for translation_ops
The MemoryRegionOps gicv3_its_translation_ops currently provides only
a .write_with_attrs function, because the only register in this
region is the write-only GITS_TRANSLATER.  However, if you don't
provide a read function and the guest tries reading from this memory
region, QEMU will crash because
memory_region_read_with_attrs_accessor() calls a NULL pointer.

Add a read function which always returns 0, to cover both bogus
attempts to read GITS_TRANSLATER and also reads from the rest of the
region, which is documented to be reserved, RES0.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220122182444.724087-11-peter.maydell@linaro.org
Diffstat (limited to 'hw/rtc/goldfish_rtc.c')
0 files changed, 0 insertions, 0 deletions