mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-02 22:03:07 +00:00
Fix halt loop (#1094)
This commit is contained in:
parent
01efa0130e
commit
ec07255f01
@ -171,7 +171,7 @@ fn simulate_cpu<F: RichField + Extendable<D>, const D: usize>(
|
||||
loop {
|
||||
// If we've reached the kernel's halt routine, and our trace length is a power of 2, stop.
|
||||
let pc = state.registers.program_counter;
|
||||
let in_halt_loop = pc == halt_pc0 || pc == halt_pc1;
|
||||
let in_halt_loop = state.registers.is_kernel && (pc == halt_pc0 || pc == halt_pc1);
|
||||
if in_halt_loop && !already_in_halt_loop {
|
||||
log::info!("CPU halted after {} cycles", state.traces.clock());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user