aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorYifei Jiang <jiangyifei@huawei.com>2020-10-14 18:17:28 +0800
committerAlistair Francis <alistair.francis@wdc.com>2020-10-22 12:00:22 -0700
commit33a9a57d2c31ec9ed68858911dc490b5de15f342 (patch)
tree8bd77284ba8e8e1ab3e09089040d24f4f25cbc55 /include/hw
parent38bc4e34f29b913d28a8d2abcf2bf74a4a4a816e (diff)
downloadqemu-33a9a57d2c31ec9ed68858911dc490b5de15f342.zip
qemu-33a9a57d2c31ec9ed68858911dc490b5de15f342.tar.gz
qemu-33a9a57d2c31ec9ed68858911dc490b5de15f342.tar.bz2
target/riscv: raise exception to HS-mode at get_physical_address
VS-stage translation at get_physical_address needs to translate pte address by G-stage translation. But the G-stage translation error can not be distinguished from VS-stage translation error in riscv_cpu_tlb_fill. On migration, destination needs to rebuild pte, and this G-stage translation error must be handled by HS-mode. So introduce TRANSLATE_STAGE2_FAIL so that riscv_cpu_tlb_fill could distinguish and raise it to HS-mode. Signed-off-by: Yifei Jiang <jiangyifei@huawei.com> Signed-off-by: Yipeng Yin <yinyipeng1@huawei.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20201014101728.848-1-jiangyifei@huawei.com [ Change by AF: - Clarify the fault_pte_addr shift ] Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include/hw')
0 files changed, 0 insertions, 0 deletions