From: Timur Date: Mon, 26 May 2025 12:43:16 +0000 (+0300) Subject: gdb/record: Support csrrci instruction in risc-v X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc616d4278f83834de2edc681174d36dbbe24ac4;p=thirdparty%2Fbinutils-gdb.git 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. --- 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