From 805d71705c28cd0404bba38032e4c7264b744bc7 Mon Sep 17 00:00:00 2001 From: Scott Johnson Date: Mon, 27 Feb 2023 05:30:31 -0800 Subject: Don't waste time checking icount when unnecessary --- riscv/execute.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/execute.cc b/riscv/execute.cc index f412a35..acf0e90 100644 --- a/riscv/execute.cc +++ b/riscv/execute.cc @@ -263,7 +263,7 @@ void processor_t::step(size_t n) state.single_step = state.STEP_STEPPED; } - if (!state.serialized) { + if (!state.serialized && check_triggers_icount) { auto match = TM.detect_icount_match(); if (match.has_value()) { assert(match->timing == triggers::TIMING_BEFORE); -- cgit v1.1