diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-04-02 17:02:20 +0200 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-04-02 17:02:20 +0200 |
commit | 476af4ac713b88597e628ff8415ae2890757d574 (patch) | |
tree | 33fc90a3b44ae2bc5da6fda924444beb455a59a4 /qtmips_machine/core.h | |
parent | 71a7c2e6791d62eaeddf8bd143c7cc1233912f2b (diff) | |
download | qtmips-476af4ac713b88597e628ff8415ae2890757d574.tar.gz qtmips-476af4ac713b88597e628ff8415ae2890757d574.tar.bz2 qtmips-476af4ac713b88597e628ff8415ae2890757d574.zip |
Implement stall cycles counter and view of CPU cycles counter.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/core.h')
-rw-r--r-- | qtmips_machine/core.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |