-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft Extension: Zicfiss
and Zicfilp
#121
Open
a4lg
wants to merge
2
commits into
riscv-zimop-zcmop
Choose a base branch
from
riscv-zicfiss-zicfilp
base: riscv-zimop-zcmop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a4lg
force-pushed
the
riscv-zicfiss-zicfilp
branch
from
August 7, 2023 01:23
65e049d
to
af3c200
Compare
a4lg
force-pushed
the
riscv-zicfiss-zicfilp
branch
from
August 7, 2023 02:55
af3c200
to
73b34d9
Compare
a4lg
force-pushed
the
riscv-zicfiss-zicfilp
branch
4 times, most recently
from
August 11, 2023 03:56
6fad8da
to
9f59642
Compare
a4lg
force-pushed
the
riscv-zimop-zcmop
branch
from
August 15, 2023 06:37
99bf60a
to
ec3eb78
Compare
a4lg
force-pushed
the
riscv-zicfiss-zicfilp
branch
from
August 15, 2023 06:37
9f59642
to
95fd54a
Compare
a4lg
force-pushed
the
riscv-zimop-zcmop
branch
from
August 15, 2023 07:27
ec3eb78
to
fb14b6b
Compare
a4lg
force-pushed
the
riscv-zicfiss-zicfilp
branch
from
August 15, 2023 07:27
95fd54a
to
b3a0d70
Compare
a4lg
force-pushed
the
riscv-zicfiss-zicfilp
branch
from
September 3, 2023 02:26
b3a0d70
to
cd1f349
Compare
a4lg
force-pushed
the
riscv-zimop-zcmop
branch
from
September 3, 2023 02:42
5523e8b
to
7251358
Compare
a4lg
force-pushed
the
riscv-zicfiss-zicfilp
branch
from
September 3, 2023 02:42
cd1f349
to
5d9fede
Compare
a4lg
force-pushed
the
riscv-zimop-zcmop
branch
from
September 5, 2023 07:58
7251358
to
e2c33c4
Compare
a4lg
force-pushed
the
riscv-zicfiss-zicfilp
branch
2 times, most recently
from
September 7, 2023 09:35
185fdfe
to
d340ddd
Compare
a4lg
force-pushed
the
riscv-zicfiss-zicfilp
branch
2 times, most recently
from
October 19, 2023 03:17
d0de7a2
to
84f5443
Compare
[DO NOT MERGE] Until the 'Zicfiss' 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 documentation (instead of possible 1.0 after ratification). This commit adds RISC-V Shadow Stack extension (Zicfiss) and its CSRs based on the document version 0.3 (latest git revision): <riscv/riscv-cfi@d21de9e> bfd/ChangeLog: * elfxx-riscv.c (riscv_implicit_subsets): Add implication 'Zicfiss' -> 'Zicsr', 'Zimop' and 'Zcmop'. (riscv_supported_std_z_ext): Add 'Zicfiss' extension to valid 'Z' extension list. (riscv_multi_subset_supports): Support new instruction class. (riscv_multi_subset_supports_ext): Likewise. gas/ChangeLog: * config/tc-riscv.c (enum riscv_csr_class): Add new CSR class. (riscv_csr_address): Add new CSR class handling. * testsuite/gas/riscv/csr.s: Add new CSR test. * testsuite/gas/riscv/csr-dw-regnums.s: Likewise. * testsuite/gas/riscv/csr-dw-regnums.d: 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. * testsuite/gas/riscv/csr-version-1p9p1.d: Likewise. * testsuite/gas/riscv/csr-version-1p9p1.l: Likewise. * testsuite/gas/riscv/zicfiss.s: New test for shadow stack instructions and its auto-compression. * testsuite/gas/riscv/zicfiss.d: Likewise. * testsuite/gas/riscv/zicfiss-32.s: New test for RV32-only insn. * testsuite/gas/riscv/zicfiss-32.d: Likewise. * testsuite/gas/riscv/zicfiss-64.s: New test for RV64-only insn. * testsuite/gas/riscv/zicfiss-64.d: Likewise. * testsuite/gas/riscv/zicfiss-na.d: Likewise. * testsuite/gas/riscv/zicfiss-mop.s: New test for MOP encoding. * testsuite/gas/riscv/zicfiss-mop-32.d: Likewise. Result on RV32. * testsuite/gas/riscv/zicfiss-mop-64.d: Likewise. Result on RV64. * testsuite/gas/riscv/zicfiss-fail.s: New failure test for shadow stack instructions. * testsuite/gas/riscv/zicfiss-fail.d: Likewise. * testsuite/gas/riscv/zicfiss-fail.l: Likewise. * testsuite/gas/riscv/zicfiss-fail-64.s: New failure test for shadow stack instructions. RV64 only. * testsuite/gas/riscv/zicfiss-fail-64.d: Likewise. * testsuite/gas/riscv/zicfiss-fail-64.l: Likewise. include/ChangeLog: * opcode/riscv-opc.h (MATCH_SSPUSH, MASK_SSPUSH, MATCH_SSPOPCHK, MASK_SSPOPCHK, MATCH_SSLW, MASK_SSLW, MATCH_SSLD, MASK_SSLD, MATCH_SSINCP, MASK_SSINCP, MATCH_SSRDP, MASK_SSRDP, MATCH_C_SSPUSH, MASK_C_SSPUSH, MATCH_C_SSPOPCHK, MASK_C_SSPOPCHK, MATCH_C_SSINCP, MASK_C_SSINCP): New. (CSR_SSP): New. * opcode/riscv.h (enum riscv_insn_class): Add new instruction class INSN_CLASS_ZICFISS. opcodes/ChangeLog: * riscv-opc.c (match_rd_eq_1_or_5, match_rs1_eq_1_or_5, match_rs2_eq_1_or_5): New. (riscv_opcodes): Add 'Zicfiss' instructions and aliases.
[DO NOT MERGE] Until the 'Zicfilp' 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 documentation (instead of possible 1.0 after ratification). This commit adds RISC-V Landing Pads extension (Zicfilp) based on the document version 0.3 (latest git revision): <riscv/riscv-cfi@d21de9e> **Important Note** The "lpad" instruction requires 4-byte alignment to complete without exceptions but this is not currently enforced by the assembler. bfd/ChangeLog: * elfxx-riscv.c (riscv_supported_std_z_ext): Add 'Zicfilp' extension to valid 'Z' extension list. (riscv_multi_subset_supports): Support new instruction class. (riscv_multi_subset_supports_ext): Likewise. gas/ChangeLog: * testsuite/gas/riscv/zicfilp.s: New test. * testsuite/gas/riscv/zicfilp.d: Likewise. include/ChangeLog: * opcode/riscv-opc.h (MATCH_LPAD, MASK_LPAD): New. * opcode/riscv.h (enum riscv_insn_class): Add new instruction class INSN_CLASS_ZICFILP. opcodes/ChangeLog: * riscv-opc.c (riscv_opcodes): Although not strictly a hint, add "lpad" to the list of standard hints because of its encoding.
a4lg
force-pushed
the
riscv-zimop-zcmop
branch
from
October 19, 2023 07:01
23722f7
to
463ca11
Compare
a4lg
force-pushed
the
riscv-zicfiss-zicfilp
branch
from
October 19, 2023 07:01
84f5443
to
02c7f21
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Wiki Page (details): https://github.com/a4lg/binutils-gdb/wiki/riscv_zicfiss_zicfilp