Browse Source

Fix performance bug when CSR accesses are common

processor_t::step was returning without doing much work, causing the HTIF
to be ticked far more often than necessary.
pull/23/head
Andrew Waterman 11 years ago
parent
commit
5235a77475
  1. 4
      riscv/processor.cc

4
riscv/processor.cc

@ -280,6 +280,10 @@ void processor_t::step(size_t n)
}
update_timer(&state, instret);
// tail-recurse if we didn't execute as many instructions as we'd hoped
if (instret < n)
step(n - instret);
}
void processor_t::push_privilege_stack()

Loading…
Cancel
Save