public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/1] RISC-V: Add 'Smcntrpmf' extension and its CSRs
@ 2023-09-03  2:42 Tsukasa OI
  2023-09-03  2:42 ` [PATCH 1/1] " Tsukasa OI
  0 siblings, 1 reply; 5+ messages in thread
From: Tsukasa OI @ 2023-09-03  2:42 UTC (permalink / raw)
  To: Tsukasa OI, Palmer Dabbelt, Andrew Waterman, Jim Wilson,
	Nelson Chu, Kito Cheng, Jiawei
  Cc: binutils

Hello,

This patch set implements the 'Smcntrpmf' extension:
<https://github.com/riscv/riscv-smcntrpmf/commit/32b752c40d59c1b5e95de83399c1f54be6669163>

This specification is frozen and now approved.

Note that, despite that this patch set is indepdendently created, it
resolved some issues of Jiawei's support patch for the same extension:
<https://sourceware.org/pipermail/binutils/2023-July/128550.html>

My patch implements the extension without removing "mscounteren" and
"mhcounteren" CSRs.

1.  "mscounteren" and "mhcounteren" CSRs are moved and marked as aliases.
2.  CSRs of the 'Smcntrpmf' extension is marked incompatible with the
    privileged specification version 1.9.1 (because it conflicts with
    "mscounteren" and "mhcounteren").

For 2., this is not normal for RISC-V extensions but considered necessary
(because of direct conflicts of the CSR values).  Thanks to them,
"mscounteren" and "mhcounteren" are preferred when disassembling with
the privileged specification 1.9.1 (that is more natural).

Other than that, this is a quite normal extension support patch set.

Thanks,
Tsukasa




Tsukasa OI (1):
  RISC-V: Add 'Smcntrpmf' extension and its CSRs

 bfd/elfxx-riscv.c                           |  2 ++
 gas/config/tc-riscv.c                       |  9 +++++
 gas/testsuite/gas/riscv/csr-dw-regnums.d    |  8 +++--
 gas/testsuite/gas/riscv/csr-dw-regnums.s    |  9 +++--
 gas/testsuite/gas/riscv/csr-version-1p10.d  | 16 ++++++---
 gas/testsuite/gas/riscv/csr-version-1p10.l  | 40 ++++++++++++++++-----
 gas/testsuite/gas/riscv/csr-version-1p11.d  | 16 ++++++---
 gas/testsuite/gas/riscv/csr-version-1p11.l  | 40 ++++++++++++++++-----
 gas/testsuite/gas/riscv/csr-version-1p12.d  | 16 ++++++---
 gas/testsuite/gas/riscv/csr-version-1p12.l  | 40 ++++++++++++++++-----
 gas/testsuite/gas/riscv/csr-version-1p9p1.d | 16 ++++++---
 gas/testsuite/gas/riscv/csr-version-1p9p1.l | 40 +++++++++++++++++++++
 gas/testsuite/gas/riscv/csr.s               | 10 ++++--
 include/opcode/riscv-opc.h                  | 14 ++++++--
 14 files changed, 228 insertions(+), 48 deletions(-)


base-commit: a496e1a71e1766d4bb02b241cb23e2e9874d2605
-- 
2.42.0


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

end of thread, other threads:[~2023-09-05  3:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-03  2:42 [PATCH 0/1] RISC-V: Add 'Smcntrpmf' extension and its CSRs Tsukasa OI
2023-09-03  2:42 ` [PATCH 1/1] " Tsukasa OI
2023-09-03  2:47   ` Tsukasa OI
2023-09-05  1:12   ` Nelson Chu
2023-09-05  3:18     ` Tsukasa OI

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).