aboutsummaryrefslogtreecommitdiff
path: root/util/qemu-timer-common.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-04-12 13:43:32 +0200
committerAlistair Francis <alistair.francis@wdc.com>2023-05-05 10:49:50 +1000
commite1dd15076bd8b38ed93cd8fc421f3ba8527af40d (patch)
tree4edc3139c721b92e7a80df5531d5047e9ee39989 /util/qemu-timer-common.c
parenta9d2e3ed4ddbef4f56a007dc6a04509e828cd98f (diff)
downloadqemu-e1dd15076bd8b38ed93cd8fc421f3ba8527af40d.zip
qemu-e1dd15076bd8b38ed93cd8fc421f3ba8527af40d.tar.gz
qemu-e1dd15076bd8b38ed93cd8fc421f3ba8527af40d.tar.bz2
target/riscv: Reorg access check in get_physical_address
We were effectively computing the protection bits twice, once while performing access checks and once while returning the valid bits to the caller. Reorg so we do this once. Move the computation of mxr close to its single use. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn> Tested-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Message-Id: <20230325105429.1142530-25-richard.henderson@linaro.org> Message-Id: <20230412114333.118895-25-richard.henderson@linaro.org> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'util/qemu-timer-common.c')
0 files changed, 0 insertions, 0 deletions