Skip to content

Commit d59d9dd

Browse files
committed
UNRATIFIED RISC-V: Add stub support for Pointer masking extensions
[DO NOT MERGE] Until Pointer masking extensions are frozen/ratified and the final version number is determined, this patch should not be merged upstream. This commit uses unratified version 0.6(.1) as in the latest PDF documentation (instead of possible 1.0 after ratification). This commit adds pointer masking extensions ('Ssnjpm', 'Smnjpm' and 'Smmjpm') based on the latest commit of the RISC-V Pointer Masking draft. <riscv/riscv-j-extension@75e6aa4> Because it doesn't provide new instructions or CSRs, it only adds extension name / implication support. bfd/ChangeLog: * elfxx-riscv.c (riscv_implicit_subsets) Add implications to 'Zicsr'. (riscv_supported_std_s_ext): Add 'Smmjpm', 'Smnjpm' and 'Ssnjpm' extensions to valid 'S' extension list.
1 parent 9f9073e commit d59d9dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bfd/elfxx-riscv.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,10 +1184,13 @@ static struct riscv_implicit_subset riscv_implicit_subsets[] =
11841184
{"zcb", "zca", check_implicit_always},
11851185
{"smaia", "ssaia", check_implicit_always},
11861186
{"smcntrpmf", "zicsr", check_implicit_always},
1187+
{"smmjpm", "zicsr", check_implicit_always},
1188+
{"smnjpm", "zicsr", check_implicit_always},
11871189
{"smstateen", "ssstateen", check_implicit_always},
11881190
{"smepmp", "zicsr", check_implicit_always},
11891191
{"ssaia", "zicsr", check_implicit_always},
11901192
{"sscofpmf", "zicsr", check_implicit_always},
1193+
{"ssnjpm", "zicsr", check_implicit_always},
11911194
{"ssstateen", "zicsr", check_implicit_always},
11921195
{"sstc", "zicsr", check_implicit_always},
11931196
{"svadu", "zicsr", check_implicit_always},
@@ -1332,9 +1335,12 @@ static struct riscv_supported_ext riscv_supported_std_s_ext[] =
13321335
{"smaia", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
13331336
{"smcntrpmf", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
13341337
{"smepmp", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
1338+
{"smmjpm", ISA_SPEC_CLASS_DRAFT, 0, 6, 0 },
1339+
{"smnjpm", ISA_SPEC_CLASS_DRAFT, 0, 6, 0 },
13351340
{"smstateen", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
13361341
{"ssaia", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
13371342
{"sscofpmf", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
1343+
{"ssnjpm", ISA_SPEC_CLASS_DRAFT, 0, 6, 0 },
13381344
{"ssstateen", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
13391345
{"sstc", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
13401346
{"svadu", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },

0 commit comments

Comments
 (0)