Skip to content

Commit

Permalink
Move memory init range to the actual address space
Browse files Browse the repository at this point in the history
  • Loading branch information
onsdagens committed Aug 4, 2023
1 parent 00b6337 commit 5fb624c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions riscv/examples/riscv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ fn main() {

//init data memory with 0's
let range = Range {
start: 0x8000_0000u32,
end: 0x8000_1000u32,
start: 0x5000_0000u32,
end: 0x5000_1000u32,
};
for address in range.clone() {
data_mem.insert(address as usize, 0);
Expand Down

0 comments on commit 5fb624c

Please sign in to comment.