Skip to content

Commit

Permalink
Merge pull request #1140 from TommyMurphyTM1234/riscv
Browse files Browse the repository at this point in the history
Fix `riscv013_invalidate_cached_progbuf()`
  • Loading branch information
en-sc authored Oct 4, 2024
2 parents e4f5489 + 16fa57d commit 0a2c146
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 0a2c146

Please sign in to comment.