aboutsummaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-05-15 16:57:25 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-05-15 16:57:25 -0700
commita8cf04b839b712f42e3ddca4d65a1474e1d486ff (patch)
tree78fdc1212d24bc4a1295daeb02aa24d7e548edd6 /src/target
parente31761df645da4a96e379aa18925eef496b459a6 (diff)
downloadriscv-openocd-a8cf04b839b712f42e3ddca4d65a1474e1d486ff.zip
riscv-openocd-a8cf04b839b712f42e3ddca4d65a1474e1d486ff.tar.gz
riscv-openocd-a8cf04b839b712f42e3ddca4d65a1474e1d486ff.tar.bz2
Go back to 32-word read/write buffers
The larger buffers are really slow on Spike.
Diffstat (limited to 'src/target')
-rw-r--r--src/target/riscv/riscv-013.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c
index e4f758a..b43322e 100644
--- a/src/target/riscv/riscv-013.c
+++ b/src/target/riscv/riscv-013.c
@@ -1321,7 +1321,7 @@ static int read_memory(struct target *target, uint32_t address,
assert (cur_addr >= address);
struct riscv_batch *batch = riscv_batch_alloc(
target,
- 1024,
+ 32,
info->dmi_busy_delay + info->ac_busy_delay);
size_t reads = 0;
@@ -1514,7 +1514,7 @@ static int write_memory(struct target *target, uint32_t address,
assert (cur_addr > address);
struct riscv_batch *batch = riscv_batch_alloc(
target,
- 1024,
+ 32,
info->dmi_busy_delay + info->ac_busy_delay);
for (riscv_addr_t i = start; i < count; ++i) {