[simple_system] Fix GetIsaString

Spike expects extension letters to be in a particular order
This commit is contained in:
Greg Chadwick 2022-03-18 17:25:38 +00:00 committed by Greg Chadwick
parent 4fa6329c58
commit 93b71e2190

View file

@ -39,10 +39,12 @@ std::string SimpleSystem::GetIsaString() const {
std::string base = top.ibex_simple_system->RV32E ? "rv32e" : "rv32i"; std::string base = top.ibex_simple_system->RV32E ? "rv32e" : "rv32i";
std::string extensions = "c"; std::string extensions;
if (top.ibex_simple_system->RV32M) if (top.ibex_simple_system->RV32M)
extensions += "m"; extensions += "m";
extensions += "c";
// See the equivalent get_isa_string() function in core_ibex_base_test.sv for // See the equivalent get_isa_string() function in core_ibex_base_test.sv for
// an explanation of the different ISA strings // an explanation of the different ISA strings
switch (top.ibex_simple_system->RV32B) { switch (top.ibex_simple_system->RV32B) {