From c231e0c9f6dcf3e9fe0637724d8672560d62c58e Mon Sep 17 00:00:00 2001 From: Gianluca Guida Date: Thu, 25 May 2023 14:43:57 +0100 Subject: [PATCH] Fix check for extension Calling 'extension_enabled' this early during the constructor of 'processor_t' causes SIGSEGV. --- riscv/processor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/processor.cc b/riscv/processor.cc index e5ae60b4..a75b0ff6 100644 --- a/riscv/processor.cc +++ b/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(); }