public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/6] RISC-V: Add Privileged Arch 1.12 and More CSRs
@ 2022-01-11 10:59 Tsukasa OI
  2022-01-11 10:59 ` [PATCH 1/6] RISC-V: Reorganize testcases for CFI directives Tsukasa OI
                   ` (6 more replies)
  0 siblings, 7 replies; 32+ messages in thread
From: Tsukasa OI @ 2022-01-11 10:59 UTC (permalink / raw)
  To: Tsukasa OI; +Cc: binutils

This patchset adds new CSRs with corresponding extensions:

-   Privileged Architecture, version 1.12
-   Smstateen (State Enable Extension)
-   Sscofpmf (Count Overflow and Mode-Based Filtering Extension)
-   Sstc ("stimecmp / vstimecmp" Extension)

It excludes new "mscontext" and moved "scontext" registers because it's
a part of unratified Debug Specification, version 1.0.

This patchset also reorganizes csr-dw-regnums.[sd] to test all CSRs as
tested on csr.s with the same order.


[Privileged Architecture versions on CSRs]

-   Privileged Architecture, version 1.12
    1.12
-   Smstateen
    1.12 (hypervisor), 1.9.1 (others)
    It seems base portions of Smstateen extension is independent from
    privileged architecture and set to oldest supported version
    (except hypervisor-related CSRs that require version 1.12).
-   Sscofpmf / Sstc
    1.12 (hypervisor), 1.11 (others)
    Because those specifications are written as deltas from the Privileged
    Architecture, version 1.11 and 1.12, base version is set to 1.11
    (tentatively). It could be a bit older than that but can be discussed.




Tsukasa OI (6):
  RISC-V: Reorganize testcases for CFI directives
  RISC-V: Add Privileged Architecture 1.12 CSRs
  RISC-V: Add Privileged Arch 1.12 CSR testcases
  RISC-V: Add 'Smstateen' extension and its CSRs
  RISC-V: Add 'Sscofpmf' extension with its CSRs
  RISC-V: Add 'Sstc' extension and its CSRs

 bfd/elfxx-riscv.c                           |   3 +
 gas/config/tc-riscv.c                       |  24 ++
 gas/testsuite/gas/riscv/csr-dw-regnums.d    | 171 +++++++++-
 gas/testsuite/gas/riscv/csr-dw-regnums.s    | 177 +++++++++-
 gas/testsuite/gas/riscv/csr-version-1p10.d  | 246 ++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p10.l  | 350 ++++++++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p11.d  | 246 ++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p11.l  | 286 ++++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p12.d  | 246 ++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p12.l  | 128 +++++++
 gas/testsuite/gas/riscv/csr-version-1p9p1.d | 246 ++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p9p1.l | 350 ++++++++++++++++++++
 gas/testsuite/gas/riscv/csr.s               | 129 ++++++++
 include/opcode/riscv-opc.h                  | 252 ++++++++++++++
 14 files changed, 2841 insertions(+), 13 deletions(-)


base-commit: 9ed5be5650ba7c315cd7cfacccc9208de2f555df
-- 
2.32.0


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

end of thread, other threads:[~2022-06-28  6:56 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 10:59 [PATCH 0/6] RISC-V: Add Privileged Arch 1.12 and More CSRs Tsukasa OI
2022-01-11 10:59 ` [PATCH 1/6] RISC-V: Reorganize testcases for CFI directives Tsukasa OI
2022-02-23  6:58   ` Nelson Chu
2022-01-11 10:59 ` [PATCH 2/6] RISC-V: Add Privileged Architecture 1.12 CSRs Tsukasa OI
2022-02-23  6:58   ` Nelson Chu
2022-02-24  2:35     ` Tsukasa OI
2022-02-24  6:05       ` Nelson Chu
2022-01-11 10:59 ` [PATCH 3/6] RISC-V: Add Privileged Arch 1.12 CSR testcases Tsukasa OI
2022-02-23  6:58   ` Nelson Chu
2022-01-11 10:59 ` [PATCH 4/6] RISC-V: Add 'Smstateen' extension and its CSRs Tsukasa OI
2022-01-11 10:59 ` [PATCH 5/6] RISC-V: Add 'Sscofpmf' extension with " Tsukasa OI
2022-01-11 10:59 ` [PATCH 6/6] RISC-V: Add 'Sstc' extension and " Tsukasa OI
2022-02-24 12:10 ` [PATCH 0/3] RISC-V: Add CSRs for several supervisor extensions Tsukasa OI
2022-02-24 12:10   ` [PATCH 1/3] RISC-V: Add 'Smstateen' extension and its CSRs Tsukasa OI
2022-02-25  6:32     ` Nelson Chu
2022-02-25  6:35       ` Tsukasa OI
2022-02-25 10:51       ` Tsukasa OI
2022-03-02  4:34         ` Nelson Chu
2022-02-24 12:10   ` [PATCH 2/3] RISC-V: Add 'Sscofpmf' extension with " Tsukasa OI
2022-02-24 12:10   ` [PATCH 3/3] RISC-V: Add 'Sstc' extension and " Tsukasa OI
2022-05-24  9:35   ` [PATCH v2 0/3] RISC-V: Add CSRs for several supervisor extensions Tsukasa OI
2022-05-24  9:35     ` [PATCH v2 1/3] RISC-V: Add 'Smstateen' extension and its CSRs Tsukasa OI
2022-05-24  9:35     ` [PATCH v2 2/3] RISC-V: Add 'Sscofpmf' extension with " Tsukasa OI
2022-05-24  9:35     ` [PATCH v2 3/3] RISC-V: Add 'Sstc' extension and " Tsukasa OI
2022-06-24  2:51     ` [PATCH v3 0/4] RISC-V: Add CSRs for several supervisor extensions Tsukasa OI
2022-06-24  2:51       ` [PATCH v3 1/4] RISC-V: Add new CSR feature gate handling (RV32,H) Tsukasa OI
2022-06-24  2:51       ` [PATCH v3 2/4] RISC-V: Add 'Smstateen' extension and its CSRs Tsukasa OI
2022-06-24  2:51       ` [PATCH v3 3/4] RISC-V: Add 'Sscofpmf' extension with " Tsukasa OI
2022-06-24  2:51       ` [PATCH v3 4/4] RISC-V: Add 'Sstc' extension and " Tsukasa OI
2022-06-28  1:40       ` [PATCH v3 0/4] RISC-V: Add CSRs for several supervisor extensions Nelson Chu
2022-06-28  5:33         ` Tsukasa OI
2022-06-28  6:56           ` 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).