public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] RISC-V: Imply 'Zicsr' from privileged extensions with CSRs
@ 2022-10-08  4:32 Tsukasa OI
  2022-10-08  4:32 ` [RFC PATCH 1/1] " Tsukasa OI
  2022-10-14  2:17 ` [RFC PATCH 0/1] " Nelson Chu
  0 siblings, 2 replies; 3+ messages in thread
From: Tsukasa OI @ 2022-10-08  4:32 UTC (permalink / raw)
  To: Tsukasa OI, Nelson Chu, Kito Cheng, Palmer Dabbelt, Andrew Waterman
  Cc: binutils

Hello,

'H', 'Smstateen', 'Sscofpmf' and 'Sstc' are four privileged extensions with
their CSR definitions and 'Smepmp' is a privileged extension with additional
CSR bits.

Volume II: Privileged Architecture of the RISC-V ISA Manual states that the
privileged architecture requires the 'Zicsr' extension.  However, current
GNU Binutils has no direct way whether the program has dependency to the
privileged architecture itself.

As a workaround, we could add implications from privileged extensions that
either add new CSRs, extend existing CSRs or depends on using CSRs.

This patchset adds such implications for existing privileged extensions that
satisfy this condition.

I would like to hear your thoughts.


Thanks,
Tsukasa




Tsukasa OI (1):
  RISC-V: Imply 'Zicsr' from privileged extensions with CSRs

 bfd/elfxx-riscv.c                       | 5 +++++
 gas/testsuite/gas/riscv/march-imply-h.d | 6 ++++++
 2 files changed, 11 insertions(+)
 create mode 100644 gas/testsuite/gas/riscv/march-imply-h.d


base-commit: 4cbfd0daabd68516651ee37a19d0e24ca4789ea3
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-14  2:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-08  4:32 [RFC PATCH 0/1] RISC-V: Imply 'Zicsr' from privileged extensions with CSRs Tsukasa OI
2022-10-08  4:32 ` [RFC PATCH 1/1] " Tsukasa OI
2022-10-14  2:17 ` [RFC PATCH 0/1] " Nelson Chu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).