[PATCH] D153499: [RISCV] Add support for custom CSRs for Sifive S76.
garvit gupta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 21 23:09:14 PDT 2023
garvitgupta08 created this revision.
garvitgupta08 added reviewers: asb, apazos, jrtc27.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
garvitgupta08 requested review of this revision.
Herald added subscribers: llvm-commits, wangpc, eopXD, MaskRay.
Herald added a project: LLVM.
This patch is a followup of differential D153370 <https://reviews.llvm.org/D153370>
Support for below CSRs is addeed -
1. Branch Prediction Mode CSR
2. Feature Disable CSR
3. Power Dial CSR
4. RNMI CSRs
spec: https://sifive.cdn.prismic.io/sifive/767804da-53b2-4893-97d5-b7c030ae0a94_s76mc_core_complex_manual_21G3.pdf
This patch makes clear distinction between AltName and DeprecatedName. DeprecatedName
is used for old names which are not in use in latest RISCV spec whereas, AltName
is used when there are multiple registers with same register encoding.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D153499
Files:
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp
llvm/lib/Target/RISCV/RISCVFeatures.td
llvm/lib/Target/RISCV/RISCVProcessors.td
llvm/lib/Target/RISCV/RISCVSystemOperands.td
llvm/test/MC/RISCV/xsfcie-invalid.s
llvm/test/MC/RISCV/xsfcie-valid.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153499.533474.patch
Type: text/x-patch
Size: 12181 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230622/9e843067/attachment.bin>
More information about the llvm-commits
mailing list