From 60338504151aeca5da2b287dc27e780fe73c6da7 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Tue, 21 Mar 2017 17:14:29 -0700 Subject: [PATCH] Wrong autoexec --- 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 f12a29fad..8fc07ca3d 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -1858,7 +1858,7 @@ static int read_memory(struct target *target, uint32_t address, return ERROR_FAIL; } dmi_write(target, DMI_ABSTRACTCS, DMI_ABSTRACTCS_CMDERR); - dmi_write(target, DMI_ABSTRACTAUTO, 0x1 << DMI_ABSTRACTAUTO_AUTOEXECPROGBUF_OFFSET); + dmi_write(target, DMI_ABSTRACTAUTO, 0x1 << DMI_ABSTRACTAUTO_AUTOEXECDATA_OFFSET); for (uint32_t i = 0; i < count; i++) { uint32_t value = dmi_read(target, DMI_DATA0); @@ -1972,7 +1972,7 @@ static int write_memory(struct target *target, uint32_t address, DMI_ABSTRACTCS_CMDERR, false); scans_add_dmi_write(scans, DMI_ABSTRACTAUTO, - 0x1 << DMI_ABSTRACTAUTO_AUTOEXECPROGBUF_OFFSET, + 0x1 << DMI_ABSTRACTAUTO_AUTOEXECDATA_OFFSET, false); } }