diff options
author | Tim Newsome <tim@sifive.com> | 2017-12-14 14:22:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-14 14:22:10 -0800 |
commit | b8db82fb576690d06082e72a6a81ec3bec99131a (patch) | |
tree | 106b78312da8bbe26bb4f8882369a69bf7b20661 /src/target | |
parent | 20236ca8170e2e833f4fe5b0219d64c8562d9ffe (diff) | |
parent | 6aff46adcc46e2f12e1a8b31a5e300e602764547 (diff) | |
download | riscv-openocd-b8db82fb576690d06082e72a6a81ec3bec99131a.zip riscv-openocd-b8db82fb576690d06082e72a6a81ec3bec99131a.tar.gz riscv-openocd-b8db82fb576690d06082e72a6a81ec3bec99131a.tar.bz2 |
Merge pull request #146 from riscv/scratch_ram
Fix cut and paste bug.
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/riscv/riscv-013.c | 2 |
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; |