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:38 +0000
committerPeter Maydell <peter.maydell@linaro.org>2022-01-28 14:29:47 +0000
commitd7d19c0aeb7d657c76c88913744ff53fc7e24c23 (patch)
treeed4fa577bc362b53ce93174593241c03fa36c8c2 /hw/rtc/goldfish_rtc.c
parent714d8bde0423b38117bfebd88e2f09a01a0efbfd (diff)
downloadfocaccia-qemu-d7d19c0aeb7d657c76c88913744ff53fc7e24c23.tar.gz
focaccia-qemu-d7d19c0aeb7d657c76c88913744ff53fc7e24c23.zip
hw/intc/arm_gicv3_redist: Remove unnecessary zero checks
The ITS-related parts of the redistributor code make some checks for
whether registers like GICR_PROPBASER and GICR_PENDBASER are zero.
There is no requirement in the specification for treating zeroes in
these address registers specially -- they contain guest physical
addresses and it is entirely valid (if unusual) for the guest to
choose to put the tables they address at guest physical address zero.
We use these values only to calculate guest addresses, and attempts
by the guest to use a bad address will be handled by the
address_space_* functions which we use to do the loads and stores.

Remove the unnecessary checks.

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