Browse Source

Fix check for extension

Calling 'extension_enabled' this early during the constructor of
'processor_t' causes SIGSEGV.
pull/1368/head
Gianluca Guida 3 years ago
parent
commit
c231e0c9f6
  1. 2
      riscv/processor.cc

2
riscv/processor.cc

@ -43,7 +43,7 @@ processor_t::processor_t(const isa_parser_t *isa, const cfg_t *cfg,
TM.proc = this;
#ifndef HAVE_INT128
if (extension_enabled('V')) {
if (isa->extension_enabled('V')) {
fprintf(stderr, "V extension is not supported on platforms without __int128 type\n");
abort();
}

Loading…
Cancel
Save