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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/qtmips_machine/registers.h b/qtmips_machine/registers.h
index 905a212..49b4cad 100644
--- a/qtmips_machine/registers.h
+++ b/qtmips_machine/registers.h
@@ -8,7 +8,7 @@ class Registers : public QObject {
Q_OBJECT
public:
Registers();
- Registers(const Registers*);
+ Registers(const Registers&);
std::uint32_t read_pc() const; // Return current value of program counter
std::uint32_t pc_inc(); // Increment program counter by four bytes
@@ -32,4 +32,6 @@ private:
std::uint32_t pc; // program counter
};
+Q_DECLARE_METATYPE(Registers)
+
#endif // REGISTERS_H