diff options
author | Timur <timurgol007@gmail.com> | 2025-05-26 15:43:16 +0300 |
---|---|---|
committer | timurgol007 <timurgol007@gmail.com> | 2025-06-17 19:10:22 +0300 |
commit | fc616d4278f83834de2edc681174d36dbbe24ac4 (patch) | |
tree | 00c74e597ad196a418e6908bcb886c16519b3b8b /gdb | |
parent | b96854116d012bdf19dd7dc68473d9f96ed5ae92 (diff) | |
download | gdb-fc616d4278f83834de2edc681174d36dbbe24ac4.zip gdb-fc616d4278f83834de2edc681174d36dbbe24ac4.tar.gz gdb-fc616d4278f83834de2edc681174d36dbbe24ac4.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/riscv-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c index 8998a29..5fb93c8 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 |