Skip to content

Commit

Permalink
(src/model) fix: memset double incrementing
Browse files Browse the repository at this point in the history
  • Loading branch information
bensimner committed Feb 7, 2025
1 parent eb6298d commit 18d8345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/src/model.c
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ static void __step_memset(u64 phys_addr, u64 size, u64 val)

/* Implement MEMSET by repeated WRITE transitions. */
for (u64 i = 0; i < size; i += 8)
__do_plain_write(phys_addr+i*sizeof(u64), val);
__do_plain_write(phys_addr+i, val);
}

static void __step_init(u64 phys_addr, u64 size)
Expand Down

0 comments on commit 18d8345

Please sign in to comment.