]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/record: Support csrrci instruction in risc-v
authorTimur <timurgol007@gmail.com>
Mon, 26 May 2025 12:43:16 +0000 (15:43 +0300)
committertimurgol007 <timurgol007@gmail.com>
Tue, 17 Jun 2025 16:10:22 +0000 (19:10 +0300)
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

index 8998a29731572c326063a039a10c8f9340a74868..5fb93c889ad36753e5c09643c4909dbf8b9b101a 100644 (file)
@@ -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