Skip to content

Commit f7cfa9e

Browse files
committed
fix log_pc
1 parent 6ea978f commit f7cfa9e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

crates/vm/src/arch/interpreter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ unsafe fn execute_trampoline<F: PrimeField32, Ctx: ExecutionCtxTrait>(
592592
.as_ref()
593593
.is_ok_and(|exit_code| exit_code.is_none())
594594
{
595-
exec_state.log_pc();
595+
tracing::trace!(pc = self.pc, "executing instruction");
596596
if Ctx::should_suspend(instret, pc, arg, exec_state) {
597597
break;
598598
}

crates/vm/src/arch/state.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ impl<F: Clone, MEM> VmState<F, MEM> {
5757
}
5858
}
5959

60-
#[inline(always)]
61-
pub fn log_pc(&self) {
62-
tracing::trace!(pc = self.pc, "executing instruction");
63-
}
64-
6560
pub fn set_instret_and_pc(&mut self, instret: u64, pc: u32) {
6661
self.instret = instret;
6762
self.pc = pc;

0 commit comments

Comments
 (0)