Merge pull request #146 from riscv/scratch_ram

Fix cut and paste bug.
update_defines
Tim Newsome 2017-12-14 14:22:10 -08:00 committed by GitHub
commit b8db82fb57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) { 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); ~(alignment - 1);
scratch->memory_space = SPACE_DMI_RAM; scratch->memory_space = SPACE_DMI_RAM;
scratch->debug_address = scratch->hart_address; scratch->debug_address = scratch->hart_address;