Commit ce6ea03
committed
fix: initialize the last 4 bytes of
These last 4 bytes are, in fact, used for register `x0`, and must be
zero. In multi-valued simulators, however, without an explicit init,
these bytes start as undefined. Moving `x0` to anywhere results in
those undefined bytes "infecting" other registers.
Issue: #148mem to zero1 parent 24006a7 commit ce6ea03
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
0 commit comments