From e73d82e3d6cf064d0323e3c686f3b7710f42a51f Mon Sep 17 00:00:00 2001 From: Gleb Gagarin Date: Wed, 21 Feb 2018 18:47:36 -0800 Subject: [PATCH] add writes to progbuf --- src/target/riscv/riscv-013.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index c05d9fc23..d3b558e8a 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -2225,8 +2225,9 @@ int riscv013_test_compliance(struct target *target) { riscv_reg_t value; LOG_INFO("Trying to write zeroes into Debug ROM"); - uint8_t b[100] = {}; + uint8_t b[256] = {}; write_memory(target, 0x800, 4, 24, b); + write_memory(target, 0x280, 4, 40, b); dmcontrol = set_field(dmcontrol_orig, hartsel_mask(target), RISCV_MAX_HARTS-1); dmi_write(target, DMI_DMCONTROL, dmcontrol);