Browse Source

Execute exactly the # of insns passed to step()

Previously, the value was treated as approximate.
pull/23/head
Andrew Waterman 11 years ago
parent
commit
1f9205c93b
  1. 1
      riscv/processor.cc

1
riscv/processor.cc

@ -261,6 +261,7 @@ void processor_t::step(size_t n)
pc = execute_insn(this, pc, fetch); \
if (idx == mmu_t::ICACHE_ENTRIES-1) break; \
if (unlikely(ic_entry->tag != pc)) break; \
if (unlikely(instret+1 == n)) break; \
instret++; \
state.pc = pc; \
}

Loading…
Cancel
Save