aboutsummaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2018-01-31 16:45:33 -0800
committerTim Newsome <tim@sifive.com>2018-01-31 16:45:33 -0800
commit7114ef485c51425b786b4cc3c1424a3e7cce487d (patch)
treebfc3af5ebce74a7b494a5f9a32de9ad191e4cbf0 /src/target
parentbb2c25c5cef5edc8435e72b3a9ea2d9b2d95d56b (diff)
downloadriscv-openocd-7114ef485c51425b786b4cc3c1424a3e7cce487d.zip
riscv-openocd-7114ef485c51425b786b4cc3c1424a3e7cce487d.tar.gz
riscv-openocd-7114ef485c51425b786b4cc3c1424a3e7cce487d.tar.bz2
Fix cut and paste bug.
Change-Id: I1c554cbe3d7cb7845bc62f14ae6b8dff107eb192
Diffstat (limited to 'src/target')
-rw-r--r--src/target/riscv/riscv-013.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c
index 80a7682..3d6783b 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)