Skip to content

Commit

Permalink
fix bug for RISCV_add_detail
Browse files Browse the repository at this point in the history
  • Loading branch information
wxrdnx committed Jun 26, 2024
1 parent 52ab12b commit be7d9dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/RISCV/RISCVDisassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "../../MCRegisterInfo.h"
#include "../../MCDisassembler.h"
#include "../../MathExtras.h"
#include "../../Mapping.h"
#include "RISCVBaseInfo.h"
#include "RISCVDisassembler.h"

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit be7d9dc

Please sign in to comment.