lib: Fix __sbi_hfence_gvma_vmid_gpa() and __sbi_hfence_vvma_asid_va()
authorAnup Patel <anup.patel@wdc.com>
Sat, 6 Jun 2020 12:03:48 +0000 (17:33 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 15 Jun 2020 03:54:27 +0000 (09:24 +0530)
commite2c3f01af4329aa7e9009edee13b7cfdf379071f
tree9b4b0d6ecd076ef0f14c514433a251a8bb64487d
parent32f87e5a8668445097473d4ad3ab5a0de7b1dd6f
lib: Fix __sbi_hfence_gvma_vmid_gpa() and __sbi_hfence_vvma_asid_va()

The arguments/parameters of __sbi_hfence_gvma_vmid_gpa() and
__sbi_hfence_vvma_asid_va() functions are swapped so we fix it.

Currently, we did not face any issues because QEMU does a full
TLB flush for all HFENCE instructions.

We also improve documentation of HFENCE.GVMA and HFENCE.VVMA
instruction encoding.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
include/sbi/sbi_hfence.h
lib/sbi/sbi_hfence.S
lib/sbi/sbi_tlb.c