Commit 33eac764 authored by Dong Du's avatar Dong Du Committed by Anup Patel
Browse files

lib: sbi: Fix bug in sbi_ecall_rfence that misses checking



In sbi_ecall_rfence_handler, it will compare the funcid with
REMOTE_HFENCE_GVMA and REMOTE_HFENCE_VVMA_ASID. Later it check
whether the misa includes H-extension. This checking is incomplete
which misses REMOTE_HFENCE_GVMA_VMID and REMOTE_HFENCE_VVMA.

Fix the issue by updating the checking range.

Signed-off-by: default avatarDong Du <Dd_nirvana@sjtu.edu.cn>
Reviewed-by: default avatarAtish Patra <atish.patra@wdc.com>
parent 7aa6c9aa
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment