diff options
author | YenHaoChen <howard25336284@gmail.com> | 2022-07-13 09:14:28 +0800 |
---|---|---|
committer | YenHaoChen <howard25336284@gmail.com> | 2022-07-13 09:14:28 +0800 |
commit | c4a5f54094fc925f96b93f3d24b20f79de1dc5fd (patch) | |
tree | cb2635e979b95b1a09405b7d58e20d3b2aeec827 | |
parent | 0ad0d9733b41e666172ff55ee946253c6dbdd080 (diff) | |
download | spike-c4a5f54094fc925f96b93f3d24b20f79de1dc5fd.zip spike-c4a5f54094fc925f96b93f3d24b20f79de1dc5fd.tar.gz spike-c4a5f54094fc925f96b93f3d24b20f79de1dc5fd.tar.bz2 |
add isa string parser for smepmp
-rw-r--r-- | riscv/isa_parser.cc | 2 | ||||
-rw-r--r-- | riscv/isa_parser.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/riscv/isa_parser.cc b/riscv/isa_parser.cc index 0f9eb06..040840a 100644 --- a/riscv/isa_parser.cc +++ b/riscv/isa_parser.cc @@ -164,6 +164,8 @@ isa_parser_t::isa_parser_t(const char* str, const char *priv) } else if (ext_str == "zkr") { extension_table[EXT_ZKR] = true; } else if (ext_str == "zkt") { + } else if (ext_str == "smepmp") { + extension_table[EXT_SMEPMP] = true; } else if (ext_str == "smstateen") { extension_table[EXT_SMSTATEEN] = true; } else if (ext_str == "svnapot") { diff --git a/riscv/isa_parser.h b/riscv/isa_parser.h index 8debf5d..6065dbc 100644 --- a/riscv/isa_parser.h +++ b/riscv/isa_parser.h @@ -31,6 +31,7 @@ typedef enum { EXT_ZBPBO, EXT_ZPN, EXT_ZPSFOPERAND, + EXT_SMEPMP, EXT_SMSTATEEN, EXT_SVNAPOT, EXT_SVPBMT, |