Skip to content

Commit ccdd26e

Browse files
committed
Comment curious code.
1 parent 927f9d8 commit ccdd26e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/target/riscv/riscv-013.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,6 +1285,8 @@ static int read_memory(struct target *target, target_addr_t address,
12851285
size, address);
12861286

12871287
select_dmi(target);
1288+
/* There was a bug in the memory system and only accesses from hart 0 actually
1289+
* worked correctly. This should be obselete now. -palmer */
12881290
riscv_set_current_hartid(target, 0);
12891291

12901292
/* This program uses two temporary registers. A word of data and the
@@ -1481,6 +1483,8 @@ static int write_memory(struct target *target, target_addr_t address,
14811483
LOG_DEBUG("writing %d words of %d bytes to 0x%08lx", count, size, (long)address);
14821484

14831485
select_dmi(target);
1486+
/* There was a bug in the memory system and only accesses from hart 0 actually
1487+
* worked correctly. This should be obselete now. -palmer */
14841488
riscv_set_current_hartid(target, 0);
14851489

14861490
/* This program uses two temporary registers. A word of data and the

0 commit comments

Comments
 (0)