Browse Source

option: flag x extension without loading shared lib (#439)

reserve the word 'dummy' to set the x-extension in misa but not to load
a related shared library.

ex:
   --isa=IMACXdummy

Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
pull/442/head
Chih-Min Chao 6 years ago
committed by GitHub
parent
commit
c069be72bb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      riscv/processor.cc

6
riscv/processor.cc

@ -222,7 +222,11 @@ void processor_t::parse_isa_string(const char* str)
const char* ext = p+1, *end = ext;
while (islower(*end))
end++;
register_extension(find_extension(std::string(ext, end - ext).c_str())());
auto ext_str = std::string(ext, end - ext);
if (ext_str != "dummy")
register_extension(find_extension(ext_str.c_str())());
p = end;
} else {
bad_isa_string(str);

Loading…
Cancel
Save