-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RISC-V: Imply 'Zicsr' from some privileged extensions
As 'H', 'Smstateen', 'Sscofpmf' and 'Sstc' define their own CSRs, they implicitly require 'Zicsr' in the process. This commit adds such implicications. gas/ChangeLog: * testsuite/gas/riscv/march-imply-h.d: New test, at least for 'H'. bfd/ChangeLog: * elfxx-riscv.c (riscv_implicit_subsets): Add 'Zicsr' implicications for privileged extensions 'H', 'Smstateen', 'Sscofpmf' and 'Sstc'.
- Loading branch information
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#as: -march=rv32ih -march-attr -misa-spec=20191213 -mpriv-spec=1.12 | ||
#readelf: -A | ||
#source: empty.s | ||
Attribute Section: riscv | ||
File Attributes | ||
Tag_RISCV_arch: "rv32i2p1_h1p0_zicsr2p0" |