From 476af4ac713b88597e628ff8415ae2890757d574 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Tue, 2 Apr 2019 17:02:20 +0200 Subject: Implement stall cycles counter and view of CPU cycles counter. Signed-off-by: Pavel Pisa --- qtmips_machine/core.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qtmips_machine/core.h') diff --git a/qtmips_machine/core.h b/qtmips_machine/core.h index 8672850..ff589c5 100644 --- a/qtmips_machine/core.h +++ b/qtmips_machine/core.h @@ -165,6 +165,9 @@ signals: void hu_stall_value(std::uint32_t); void branch_forward_value(std::uint32_t); + void cycle_c_value(std::uint32_t); + void stall_c_value(std::uint32_t); + void stop_on_exception_reached(); protected: @@ -273,6 +276,8 @@ protected: void dtExecuteInit(struct dtExecute &dt); void dtMemoryInit(struct dtMemory &dt); +protected: + unsigned int stall_c; private: struct hwBreak{ hwBreak(std::uint32_t addr); -- cgit v1.2.3