diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-05 18:14:53 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-05 18:14:53 +0100 |
commit | 71e2e98d07499c6d0f31596fec52cd8cef5813a9 (patch) | |
tree | d2aa2729956464f2aab62bb5f088850b69a5a8d7 /qtmips_machine/registers.h | |
parent | 1a3fbaf22975b1f130998841adb3109b8a543513 (diff) | |
download | qtmips-71e2e98d07499c6d0f31596fec52cd8cef5813a9.tar.gz qtmips-71e2e98d07499c6d0f31596fec52cd8cef5813a9.tar.bz2 qtmips-71e2e98d07499c6d0f31596fec52cd8cef5813a9.zip |
Implement machine restart
Diffstat (limited to 'qtmips_machine/registers.h')
-rw-r--r-- | qtmips_machine/registers.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qtmips_machine/registers.h b/qtmips_machine/registers.h index fa3e304..9bb8426 100644 --- a/qtmips_machine/registers.h +++ b/qtmips_machine/registers.h @@ -26,6 +26,8 @@ public: bool operator ==(const Registers &c) const; bool operator !=(const Registers &c) const; + void reset(); // Reset all values to zero (except pc) + signals: void pc_update(std::uint32_t val); void gp_update(std::uint8_t i, std::uint32_t val); |