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>
Differential D117733
[RISCV] Support hypervisor extention instructions tangxingxin1008 on Jan 19 2022, 4:55 PM. Authored by
Details 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 Timeline
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.
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 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! 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). |
I know this comment is copied, but as you're touching it perhaps reword to "A parse method for (${gpr}) or 0(${gpr}), where the 0 will be silently ignored." I'd drop the "Used for GNU as compatibility" bit as I don't think it's adding much information.