riscv: add missing variable declaration.

This commit is contained in:
Megan Wachs 2017-03-21 23:47:21 -07:00
parent 09da0c812f
commit 98420e377a
1 changed files with 1 additions and 0 deletions

View File

@ -1860,6 +1860,7 @@ static int read_memory(struct target *target, uint32_t address,
dmi_write(target, DMI_ABSTRACTCS, DMI_ABSTRACTCS_CMDERR);
dmi_write(target, DMI_ABSTRACTAUTO, 0x1 << DMI_ABSTRACTAUTO_AUTOEXECDATA_OFFSET);
uint32_t abstractcs;
for (uint32_t i = 0; i < count; i++) {
uint32_t value = dmi_read(target, DMI_DATA0);
switch (size) {