From be7d9dc2ae90df8eeb77e1f5a16f085cef76a378 Mon Sep 17 00:00:00 2001 From: wxrdnx Date: Tue, 25 Jun 2024 22:56:34 -0500 Subject: [PATCH] fix bug for RISCV_add_detail --- arch/RISCV/RISCVDisassembler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/RISCV/RISCVDisassembler.c b/arch/RISCV/RISCVDisassembler.c index 48863d4b96..4b81da2aab 100644 --- a/arch/RISCV/RISCVDisassembler.c +++ b/arch/RISCV/RISCVDisassembler.c @@ -26,6 +26,7 @@ #include "../../MCRegisterInfo.h" #include "../../MCDisassembler.h" #include "../../MathExtras.h" +#include "../../Mapping.h" #include "RISCVBaseInfo.h" #include "RISCVDisassembler.h" @@ -347,7 +348,7 @@ static void markCLSInsn(MCInst *MI, uint32_t in) id == RISCV_C_FLWSP || id == RISCV_C_LDSP || id == RISCV_C_FSDSP || id == RISCV_C_SWSP || id == RISCV_C_FSWSP || id == RISCV_C_SDSP) { - RISCV_get_detail()->need_effective_addr = true; + RISCV_get_detail(MI)->need_effective_addr = true; } return; }