You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UNRATIFIED RISC-V: Add 'Zjpm' extension and its TENTATIVE CSRs
[DO NOT MERGE]
Until 'Zjpm' extension is frozen/ratified and final version number is
determined, this patch should not be merged upstream. This commit uses
unratified version 0.3 as in the latest PDF documentation (instead of
possible 1.0 after ratification).
This commit adds pointer masking proposal (Zjpm) and its CSRs based on the
latest commit of the 'Zjpm' extension documentation.
<https://github.com/riscv/riscv-j-extension/tree/2f8b10484851dd03f8d607833633efee7e73cff0/zjpm>
Note that, this "zjpm" directory does not contain version numbers and
"zjpm-spec.pdf" on the root directory slightly differs from this
directory.
***Note***
Because CSR addresses are not fixed yet, this commit uses tentative
addresses (a part of custom CSR space).
bfd/ChangeLog:
* elfxx-riscv.c (riscv_implicit_subsets) Add implication 'Zjpm'
-> 'Zicsr'. (riscv_supported_std_z_ext): Add 'Zjpm' extension to
valid 'Z' extension list.
gas/ChangeLog:
* config/tc-riscv.c (enum riscv_csr_class): Add CSR classes for
the 'Zjpm' extension. (riscv_csr_address): Add handling for new
CSR classes.
* testsuite/gas/riscv/csr-dw-regnums.d: Add new CSRs.
* testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
* testsuite/gas/riscv/csr.s: Add new CSRs.
* testsuite/gas/riscv/csr-version-1p9p1.d: Likewise.
* testsuite/gas/riscv/csr-version-1p9p1.l: Likewise.
* testsuite/gas/riscv/csr-version-1p10.d: Likewise.
* testsuite/gas/riscv/csr-version-1p10.l: Likewise.
* testsuite/gas/riscv/csr-version-1p11.d: Likewise.
* testsuite/gas/riscv/csr-version-1p11.l: Likewise.
* testsuite/gas/riscv/csr-version-1p12.d: Likewise.
* testsuite/gas/riscv/csr-version-1p12.l: Likewise.
include/ChangeLog:
* opcode/riscv-opc.h (CSR_MPM, CSR_HSPM, CSR_SPM, CSR_UPM): New
CSR macros.
0 commit comments