This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add alias for HFENCE.VVMA
ClosedPublic

Authored by tangxingxin1008 on Mar 3 2022, 1:48 AM.

Details

Summary

Signed-off-by: Eric Tang <eric.tang@starfivetech.com>

Diff Detail

Event Timeline

tangxingxin1008 created this revision.Mar 3 2022, 1:48 AM
tangxingxin1008 requested review of this revision.Mar 3 2022, 1:48 AM

I don't find explicit alias of these instructions(sfence.vma, hfence.gvma, hfence.vvma) from the Privileged spec, but there is a case about hfence.gvma from linux kvm : https://github.com/torvalds/linux/blob/master/arch/riscv/kvm/tlb.S. According to Privileged spec , "HFENCE.VVMA and HFENCE.GVMA,perform a function similar to SFENCE.VMA (Section 4.2.1)", so add alias for hfence.vvma is a necessary.

craig.topper accepted this revision.Mar 4 2022, 10:16 AM

LGTM. Thanks!

This revision is now accepted and ready to land.Mar 4 2022, 10:16 AM
This revision was landed with ongoing or failed builds.Mar 10 2022, 9:34 PM
This revision was automatically updated to reflect the committed changes.