From ed6b197a94775b5f71d2448610d5033d8b854d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alf-Andr=C3=A9=20Walla?= Date: Wed, 3 Jul 2024 16:46:15 +0200 Subject: [PATCH] Fix warning in inaccurate dispatch --- lib/libriscv/cpu_inaccurate_dispatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libriscv/cpu_inaccurate_dispatch.cpp b/lib/libriscv/cpu_inaccurate_dispatch.cpp index 3c7057f9..f6cb5684 100644 --- a/lib/libriscv/cpu_inaccurate_dispatch.cpp +++ b/lib/libriscv/cpu_inaccurate_dispatch.cpp @@ -235,7 +235,7 @@ INSTRUCTION(RV32I_BC_STOP, rv32i_stop) registers().pc = pc; trigger_exception(ILLEGAL_OPCODE, decoder->instr); -#ifdef RISCV_LIBTCC +#if defined(RISCV_BINARY_TRANSLATION) && defined(RISCV_LIBTCC) handle_rethrow_exception: // We have an exception, so we need to rethrow it const auto except = CPU().current_exception();