From 747038a9cc85b70b832efd8104e9eee84717fc49 Mon Sep 17 00:00:00 2001 From: Clo91eaf Date: Sun, 25 Aug 2024 00:19:01 +0800 Subject: [PATCH] [t1rocket] use real mcycle in testbench --- t1rocketemu/test_common/src/spike_runner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t1rocketemu/test_common/src/spike_runner.rs b/t1rocketemu/test_common/src/spike_runner.rs index 5d6758b2b..3fd0daf32 100644 --- a/t1rocketemu/test_common/src/spike_runner.rs +++ b/t1rocketemu/test_common/src/spike_runner.rs @@ -96,7 +96,7 @@ impl SpikeRunner { let state = proc.get_state(); let mcycle = self.cycle as usize; - state.set_mcycle(0); + state.set_mcycle(mcycle); let mut event = SpikeEvent::new(spike, self.do_log_vrf); state.clear();