From 71e2e98d07499c6d0f31596fec52cd8cef5813a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 5 Jan 2018 18:14:53 +0100 Subject: Implement machine restart --- qtmips_machine/core.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qtmips_machine/core.h') diff --git a/qtmips_machine/core.h b/qtmips_machine/core.h index 7d38d79..1878bfc 100644 --- a/qtmips_machine/core.h +++ b/qtmips_machine/core.h @@ -17,6 +17,8 @@ public: virtual void step() = 0; // Do single step + virtual void reset() = 0; // Reset core (only core, memory and registers has to be reseted separately) + signals: void instruction_fetched(machine::Instruction &inst); @@ -75,6 +77,8 @@ public: void step(); + void reset(); + private: struct Core::dtDecode *jmp_delay_decode; }; @@ -85,6 +89,8 @@ public: void step(); + void reset(); + private: struct Core::dtFetch dt_f; struct Core::dtDecode dt_d; -- cgit v1.2.3