Skip to content

Commit

Permalink
[RISC-V] Add RVA profiles to coredistools (#415)
Browse files Browse the repository at this point in the history
Add extensions of ratified RISC-V application profiles (the unprivileged
side). JIT doesn't emit code for newly added extensions yet, this is to
future-proof since coredistools are rebuilt infrequently. See
#414 (comment)
for context.

Part of dotnet/runtime#84834, cc @dotnet/samsung @BruceForstall
  • Loading branch information
tomeksowi authored Sep 18, 2024
1 parent 1a8d016 commit bac92f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/coredistools/coredistools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,10 @@ bool CorDisasm::init() {
// string "+all" to just enable all features, even those not implemented in any current CPU.
FeaturesStr = "+all";
} else if (TheTargetArch == Target_RiscV64) {
FeaturesStr = "+m,+a,+f,+d,+c,+zicsr,+zifencei"; // RV64GC
FeaturesStr = "+m,+a,+f,+d,+c,+zicsr,+zifencei," // RV64GC
"+zicntr,+zihpm,+ziccif,+ziccrse,+ziccamoa,+zicclsm,+za64rs," // RVA20
"+b,+zihintpause,+zic64b,+zicbom,+zicbop,+zicboz,+zfhmin,+zkt," // RVA22 mandatory
"+v,+zfh,+zkn,+zks"; // RVA22 optional
}

STI.reset(TheTarget->createMCSubtargetInfo(TargetTriple, Mcpu, FeaturesStr));
Expand Down

0 comments on commit bac92f6

Please sign in to comment.