Merge pull request #1140 from TommyMurphyTM1234/riscv

Fix `riscv013_invalidate_cached_progbuf()`
This commit is contained in:
Evgeniy Naydanov 2024-10-04 16:39:32 +03:00 committed by GitHub
commit 0a2c146440
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}