diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 9f3708917..46248027c 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -566,8 +566,8 @@ static int execute_abstract_command(struct target *target, uint32_t command) dmi_write(target, DMI_COMMAND, command); { - uint32_t dmstatus = 0; - wait_for_idle(target, &dmstatus); + uint32_t abstractcs = 0; + wait_for_idle(target, &abstractcs); } uint32_t cs = dmi_read(target, DMI_ABSTRACTCS);