Skip to content

Commit

Permalink
Fix riscv013_invalidate_cached_progbuf() - see #1139
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyMurphyTM1234 committed Oct 2, 2024
1 parent 841b61a commit 8317e0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/target/riscv/riscv-013.c
Original file line number Diff line number Diff line change
Expand Up @@ -5282,8 +5282,7 @@ static int riscv013_invalidate_cached_progbuf(struct target *target)
}

LOG_TARGET_DEBUG(target, "Invalidating progbuf cache");
for (unsigned int i = 0; i < 15; i++)
dm->progbuf_cache[i] = 0;
memset(dm->progbuf_cache, 0, sizeof(dm->progbuf_cache));
return ERROR_OK;
}

Expand Down

0 comments on commit 8317e0f

Please sign in to comment.