Fix cut and paste bug.

Now reading 64-bit FPRs on 32-bit harts using scratch memory might work.

Change-Id: Ie8c0fc689386c6e724ecab5e8c855e725fa8dd97
update_defines
Tim Newsome 2017-12-14 13:51:13 -08:00
parent 20236ca817
commit 6aff46adcc
1 changed files with 1 additions and 1 deletions

View File

@ -873,7 +873,7 @@ static int scratch_find(struct target *target,
}
if (riscv_use_scratch_ram) {
scratch->hart_address = (riscv_use_scratch_ram + alignment - 1) &
scratch->hart_address = (riscv_scratch_ram_address + alignment - 1) &
~(alignment - 1);
scratch->memory_space = SPACE_DMI_RAM;
scratch->debug_address = scratch->hart_address;