According to privileged spec version-20211203 Add the following hypervisor instructions:: - HLV.B HLV.BU - HLV.H HLV.HU HLVX.HU - HLV.W HLV.WU HLVX.WU - HLV.D - HSV.B HSV.H HSV.W HSV.D
Signed-off-by: eric.tang <eric.tang@starfivetech.com>
Paths
| Differential D117733
[RISCV] Support hypervisor extention instructions ClosedPublic Authored by tangxingxin1008 on Jan 19 2022, 4:55 PM.
Details Summary According to privileged spec version-20211203 Add the following hypervisor instructions:: - HLV.B HLV.BU - HLV.H HLV.HU HLVX.HU - HLV.W HLV.WU HLVX.WU - HLV.D - HSV.B HSV.H HSV.W HSV.D Signed-off-by: eric.tang <eric.tang@starfivetech.com>
Diff Detail
Event TimelineHerald added subscribers: VincentWu, luke957, achieveartificialintelligence and 23 others. · View Herald TranscriptJan 19 2022, 4:55 PM
Comment Actions Thanks for the patch. Alongside the inline comments, two minor suggestions:
Once the inline comments are addressed and tests added for using the RV64 instructions on RV32, I think it should be ready to land.
asb added a child revision: D117432: [RISCV] Implement support for the Zicbom and Zicboz extensions.Feb 7 2022, 6:48 AM Comment Actions@tangxingxin1008: Might you have a chance to look at these review comments soon? I've ended up rebasing D117432 on top of this patch in order to use GPRMemZeroOffset, so that's another reason it would be good to land this. Thanks. Comment Actions
Just a friendly ping on this. Comment Actions
I'm very sorry so late back to you. I will update it as soon as possible. Comment Actions
" There's no need to split it out now I don't think", do you mean the two commits [D117654, D117733] should be to one commit? Comment Actions
Sorry that was a big ambiguous. I just meant that although splitting out the GPRMemZeroOffset change would be helpful, but not essential. But you've done it in D120017 now anyway, which is helpful as it should unblock my other patch. Thanks! asb removed a child revision: D117432: [RISCV] Implement support for the Zicbom and Zicboz extensions.Feb 17 2022, 6:06 AM tangxingxin1008 retitled this revision from [RISCV] Update Privileged spec to version-20211203: Support Hypervisor Extention to [RISCV] Support hypervisor extention instructions.Feb 18 2022, 12:38 AM tangxingxin1008 added a parent revision: D120017: [RISCV] Change GPRMemAtomic to GPRMemZeroOffset for general usage. Comment Actions Thanks, there's just one piece (see below) that was missed and otherwise this looks great to me. Could you please add test coverage for the RV64-only instructions on RV32 (i.e. demonstrating attempting to use them produces an error). tangxingxin1008 marked an inline comment as not done. Comment ActionsAddress asb's comment. Add more tests for the RV64-only instructions on RV32. This revision is now accepted and ready to land.Feb 25 2022, 12:27 AM This revision was landed with ongoing or failed builds.Feb 27 2022, 10:08 PM Closed by commit rGb496a172e406: [RISCV] Support hypervisor extention instructions (authored by tangxingxin1008). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 401515 llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.h
llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/lib/Target/RISCV/RISCVInstrInfoA.td
llvm/test/MC/RISCV/priv-aliases-valid.s
llvm/test/MC/RISCV/priv-invalid.s
llvm/test/MC/RISCV/priv-rv64-valid.s
llvm/test/MC/RISCV/priv-valid.s
|
clang-format not found in user’s local PATH; not linting file.