Skip to content

Commit 404def8

Browse files
committed
RISC-V: Add stub support for the 'Svadu' extension
This commit implements support for 'Svadu' extension. Because it does not add any instructions or CSRs (but adds bits to existing CSRs), this commit only adds extension name support and implication to the 'Zicsr' extension. This is based on the "Hardware Updating of PTE A/D Bits (Svadu)" specification, version 1.0-rc1 (Frozen): <https://github.com/riscv/riscv-svadu/releases/tag/v1.0-rc1> bfd/ChangeLog: * elfxx-riscv.c (riscv_implicit_subsets): Add implication from 'Svadu' to 'Zicsr'. (riscv_supported_std_s_ext) Add 'Svadu'.
1 parent 2a54645 commit 404def8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bfd/elfxx-riscv.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,7 @@ static struct riscv_implicit_subset riscv_implicit_subsets[] =
11901190
{"sscofpmf", "zicsr", check_implicit_always},
11911191
{"ssstateen", "zicsr", check_implicit_always},
11921192
{"sstc", "zicsr", check_implicit_always},
1193+
{"svadu", "zicsr", check_implicit_always},
11931194
{NULL, NULL, NULL}
11941195
};
11951196

@@ -1336,6 +1337,7 @@ static struct riscv_supported_ext riscv_supported_std_s_ext[] =
13361337
{"sscofpmf", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
13371338
{"ssstateen", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
13381339
{"sstc", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
1340+
{"svadu", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
13391341
{"svinval", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
13401342
{"svnapot", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
13411343
{"svpbmt", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },

0 commit comments

Comments
 (0)