Properly write 64-bit PCs.

__archive__
Tim Newsome 2016-08-15 13:42:39 -07:00
parent e3e745abb9
commit b04f89076a
1 changed files with 2 additions and 2 deletions

View File

@ -834,10 +834,10 @@ static int resume(struct target *target, int current, uint32_t address,
// TODO: check if dpc is dirty (which also is true if an exception was hit
// at any time)
cache_set32(target, 0, lw(S0, ZERO, DEBUG_RAM_START + 16));
cache_set_load(target, 0, S0, SLOT0);
cache_set32(target, 1, csrw(S0, CSR_DPC));
cache_set_jump(target, 2);
cache_set32(target, 4, info->dpc);
cache_set(target, SLOT0, info->dpc);
if (cache_write(target, 4, true) != ERROR_OK) {
return ERROR_FAIL;
}