[v1.04][RISCV] Make single-letter extension detection more robust. s and u are invalid but might appear (#200), so just skip them

This commit is contained in:
Dr-Noob
2023-10-29 17:14:47 +00:00
parent bf890965a3
commit 9a578d3670
2 changed files with 28 additions and 3 deletions

View File

@@ -54,7 +54,6 @@ static const struct extension extension_list[] = {
{ 'v' - 'a', "(V) Vector Operations" },
{ 'n' - 'a', "(N) User-Level Interrupts" },
{ 'h' - 'a', "(H) Hypervisor" },
{ 's' - 'a', "(S) Supervisor-level Instructions" },
// multi-letter extensions
{ RISCV_ISA_EXT_SSCOFPMF, "(Sscofpmf) Count OverFlow and Privilege Mode Filtering" },
{ RISCV_ISA_EXT_SSTC, "(Sstc) S and VS level Time Compare" },