From fc616d4278f83834de2edc681174d36dbbe24ac4 Mon Sep 17 00:00:00 2001 From: Timur Date: Mon, 26 May 2025 15:43:16 +0300 Subject: [PATCH] gdb/record: Support csrrci instruction in risc-v During testing csr instructions in risc-v, it occurs that instruction csrrci is unsupported for recording process and there is such warning: 'warning: Currently this instruction with len 4(100174f3) is unsupported', so recording failed. This patch fixes this error. --- gdb/riscv-tdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c index 8998a297315..5fb93c889ad 100644 --- a/gdb/riscv-tdep.c +++ b/gdb/riscv-tdep.c @@ -5158,7 +5158,7 @@ private: { return (is_csrrw_insn (ival) || is_csrrs_insn (ival) || is_csrrc_insn (ival) || is_csrrwi_insn (ival) || is_csrrsi_insn (ival) - || is_csrrc_insn (ival)); + || is_csrrci_insn (ival)); } /* Returns true if instruction is classified. This function can set -- 2.47.3