diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 80a768292..3d6783b2e 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -686,7 +686,7 @@ static int register_read_abstract(struct target *target, uint64_t *value, RISCV013_INFO(info); if (number >= GDB_REGNO_FPR0 && number <= GDB_REGNO_FPR31 && - !info->abstract_write_fpr_supported) + !info->abstract_read_fpr_supported) return ERROR_FAIL; if (number >= GDB_REGNO_CSR0 && number <= GDB_REGNO_CSR4095 && !info->abstract_read_csr_supported)