From 7114ef485c51425b786b4cc3c1424a3e7cce487d Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Wed, 31 Jan 2018 16:45:33 -0800 Subject: [PATCH] Fix cut and paste bug. Change-Id: I1c554cbe3d7cb7845bc62f14ae6b8dff107eb192 --- src/target/riscv/riscv-013.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)