add writes to progbuf

compliance_dev
Gleb Gagarin 2018-02-21 18:47:36 -08:00
parent f97e4b53e4
commit e73d82e3d6
1 changed files with 2 additions and 1 deletions

View File

@ -2225,8 +2225,9 @@ int riscv013_test_compliance(struct target *target) {
riscv_reg_t value; riscv_reg_t value;
LOG_INFO("Trying to write zeroes into Debug ROM"); 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, 0x800, 4, 24, b);
write_memory(target, 0x280, 4, 40, b);
dmcontrol = set_field(dmcontrol_orig, hartsel_mask(target), RISCV_MAX_HARTS-1); dmcontrol = set_field(dmcontrol_orig, hartsel_mask(target), RISCV_MAX_HARTS-1);
dmi_write(target, DMI_DMCONTROL, dmcontrol); dmi_write(target, DMI_DMCONTROL, dmcontrol);