fix for cycles per instruction

This commit is contained in:
folkert van heusden 2024-05-09 15:29:30 +02:00
parent a473a5b15d
commit b77f1cf9d3
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -109,7 +109,7 @@ std::tuple<double, double, uint64_t, uint32_t, double> cpu::get_mips_rel_speed(c
uint32_t cpu::get_effective_run_time(const uint64_t instruction_count) const uint32_t cpu::get_effective_run_time(const uint64_t instruction_count) const
{ {
// division is to go from ns to ms // division is to go from ns to ms
return instruction_count * pdp11_clock_cycle / 1000000l; return instruction_count * pdp11_avg_cycles_per_instruction * pdp11_clock_cycle / 1000000l;
} }
void cpu::add_to_stack_trace(const uint16_t p) void cpu::add_to_stack_trace(const uint16_t p)