Skip to content

Commit

Permalink
Fix check for extension
Browse files Browse the repository at this point in the history
Calling 'extension_enabled' this early during the constructor of
'processor_t' causes SIGSEGV.
  • Loading branch information
glg-rv committed May 26, 2023
1 parent 3010cb4 commit c231e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv/processor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit c231e0c

Please sign in to comment.