aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/registers.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_machine/registers.h')
-rw-r--r--qtmips_machine/registers.h2
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);