diff options
Diffstat (limited to 'qtmips_machine/core.cpp')
-rw-r--r-- | qtmips_machine/core.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/qtmips_machine/core.cpp b/qtmips_machine/core.cpp index 88b2fe2..96ae0ad 100644 --- a/qtmips_machine/core.cpp +++ b/qtmips_machine/core.cpp @@ -72,10 +72,14 @@ void Core::reset() { do_reset(); } -unsigned Core::cycles() { +unsigned Core::cycles() const { return cycle_c; } +unsigned Core::stalls() const { + return stall_c; +} + Registers *Core::get_regs() { return regs; } @@ -935,7 +939,7 @@ bool StopExceptionHandler::handle_exception(Core *core, Registers *regs, (unsigned long)regs->read_pc(), (unsigned long)mem_ref_addr); #else (void)excause; (void)inst_addr; (void)next_addr; (void)mem_ref_addr; (void)regs; - (void)jump_branch_pc; (void)in_delay_slot; + (void)jump_branch_pc; (void)in_delay_slot, (void)core; #endif return true; }; |