mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target/riscv: Implement checks for hfence
Call the helper_hyp_tlb_flush() function on hfence instructions which will generate an illegal insruction execption if we don't have permission to flush the Hypervisor level TLBs. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
b8429ded72
commit
2761db5fc2
3 changed files with 24 additions and 26 deletions
|
@ -76,3 +76,8 @@ DEF_HELPER_2(mret, tl, env, tl)
|
|||
DEF_HELPER_1(wfi, void, env)
|
||||
DEF_HELPER_1(tlb_flush, void, env)
|
||||
#endif
|
||||
|
||||
/* Hypervisor functions */
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
DEF_HELPER_1(hyp_tlb_flush, void, env)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue