From b77f1cf9d359af300547a89d01c8b3e55f07f9ed Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Thu, 9 May 2024 15:29:30 +0200 Subject: [PATCH] fix for cycles per instruction --- cpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu.cpp b/cpu.cpp index 2cdc883..6eca7c0 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -109,7 +109,7 @@ std::tuple cpu::get_mips_rel_speed(c uint32_t cpu::get_effective_run_time(const uint64_t instruction_count) const { // 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)