[PATCH] D151898: [RISCV] Guard Advance Interrupt Architecture CSRs with Smaia and Ssaia extensions.

garvit gupta via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 09:30:13 PDT 2023


garvitgupta08 created this revision.
garvitgupta08 added reviewers: asb, apazos.
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, jrtc27, 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, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

Smaia and Ssaia extension for advance interrupt architecture CSRs are added in
this patch - https://reviews.llvm.org/D148066. However, the CSRs were not being
guarded by these extensions.

This patch adds the same because these CSRs should be recognized by name when
assembling/disassembling if their corresponding extensions are enabled.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151898

Files:
  llvm/lib/Target/RISCV/RISCVSystemOperands.td
  llvm/test/MC/RISCV/hypervisor-csr-names.s
  llvm/test/MC/RISCV/machine-csr-names.s
  llvm/test/MC/RISCV/rv32-hypervisor-csr-names.s
  llvm/test/MC/RISCV/rv32-machine-csr-names.s
  llvm/test/MC/RISCV/rv32-supervisor-csr-names.s
  llvm/test/MC/RISCV/rvi-aliases-valid.s
  llvm/test/MC/RISCV/supervisor-csr-names.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151898.527458.patch
Type: text/x-patch
Size: 9544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230601/616d7943/attachment.bin>


More information about the llvm-commits mailing list