From a8cf04b839b712f42e3ddca4d65a1474e1d486ff Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Mon, 15 May 2017 16:57:25 -0700 Subject: [PATCH] Go back to 32-word read/write buffers The larger buffers are really slow on Spike. --- src/target/riscv/riscv-013.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index e4f758ae9..b43322eae 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) {