Skip to content

Commit 4bdb042

Browse files
Allow memory writes to proceed on all harts
1 parent a277416 commit 4bdb042

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/target/riscv/riscv-013.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,9 +1334,6 @@ static int read_memory(struct target *target, target_addr_t address,
13341334
size, address);
13351335

13361336
select_dmi(target);
1337-
/* There was a bug in the memory system and only accesses from hart 0 actually
1338-
* worked correctly. This should be obselete now. -palmer */
1339-
riscv_set_current_hartid(target, 0);
13401337

13411338
/* This program uses two temporary registers. A word of data and the
13421339
* associated address are stored at some location in memory. The
@@ -1532,9 +1529,6 @@ static int write_memory(struct target *target, target_addr_t address,
15321529
LOG_DEBUG("writing %d words of %d bytes to 0x%08lx", count, size, (long)address);
15331530

15341531
select_dmi(target);
1535-
/* There was a bug in the memory system and only accesses from hart 0 actually
1536-
* worked correctly. This should be obselete now. -palmer */
1537-
riscv_set_current_hartid(target, 0);
15381532

15391533
/* This program uses two temporary registers. A word of data and the
15401534
* associated address are stored at some location in memory. The

0 commit comments

Comments
 (0)