aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-12-14 13:51:13 -0800
committerTim Newsome <tim@sifive.com>2017-12-14 13:51:13 -0800
commit6aff46adcc46e2f12e1a8b31a5e300e602764547 (patch)
tree106b78312da8bbe26bb4f8882369a69bf7b20661 /src
parent20236ca8170e2e833f4fe5b0219d64c8562d9ffe (diff)
downloadriscv-openocd-6aff46adcc46e2f12e1a8b31a5e300e602764547.zip
riscv-openocd-6aff46adcc46e2f12e1a8b31a5e300e602764547.tar.gz
riscv-openocd-6aff46adcc46e2f12e1a8b31a5e300e602764547.tar.bz2
Fix cut and paste bug.
Now reading 64-bit FPRs on 32-bit harts using scratch memory might work. Change-Id: Ie8c0fc689386c6e724ecab5e8c855e725fa8dd97
Diffstat (limited to 'src')
-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 1f3bb74..14a7d26 100644
--- a/src/target/riscv/riscv-013.c
+++ b/src/target/riscv/riscv-013.c
@@ -873,7 +873,7 @@ static int scratch_find(struct target *target,
}
if (riscv_use_scratch_ram) {
- scratch->hart_address = (riscv_use_scratch_ram + alignment - 1) &
+ scratch->hart_address = (riscv_scratch_ram_address + alignment - 1) &
~(alignment - 1);
scratch->memory_space = SPACE_DMI_RAM;
scratch->debug_address = scratch->hart_address;