diff options
Diffstat (limited to 'riscv/sim.cc')
-rw-r--r-- | riscv/sim.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/riscv/sim.cc b/riscv/sim.cc index f01e931..864ec09 100644 --- a/riscv/sim.cc +++ b/riscv/sim.cc @@ -76,6 +76,7 @@ void sim_t::run() { while (!htif->done()) { + htif->tick(); if (debug || ctrlc_pressed) interactive(); else @@ -99,8 +100,6 @@ void sim_t::step(size_t n, bool noisy) current_proc = 0; htif->tick(); - if (!running()) - break; } } } |