Commit 1dae33ee authored by George Hotz's avatar George Hotz

fix target, start steps at 1

parent 20983b85
......@@ -37,6 +37,10 @@ func main() {
SyncRegs(mu, ram)
fn := fmt.Sprintf("%s/checkpoint_%d.json", root, step)
WriteCheckpoint(ram, fn, step)
if step == target {
// done
mu.RegWrite(uc.MIPS_REG_PC, 0x5ead0004)
}
}
lastStep = step
})
......@@ -55,7 +59,9 @@ func main() {
mu.Start(0, 0x5ead0004)
SyncRegs(mu, ram)
WriteCheckpoint(ram, fmt.Sprintf("%s/checkpoint_final.json", root), lastStep)
if target == -1 {
WriteCheckpoint(ram, fmt.Sprintf("%s/checkpoint_final.json", root), lastStep)
}
// step 2 (optional), validate each 1 million chunk in EVM
......
......@@ -20,7 +20,7 @@ func check(err error) {
}
}
var steps int = 0
var steps int = 1
var heap_start uint64 = 0
func WriteBytes(fd int, bytes []byte) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment