diff options
Diffstat (limited to 'qtmips_cli/tracer.h')
-rw-r--r-- | qtmips_cli/tracer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qtmips_cli/tracer.h b/qtmips_cli/tracer.h index 245f418..913687c 100644 --- a/qtmips_cli/tracer.h +++ b/qtmips_cli/tracer.h @@ -9,6 +9,8 @@ class Tracer : public QObject { public: Tracer(machine::QtMipsMachine *machine); + // Trace fetched instruction + void fetch(); // Trace registers void reg_pc(); void reg_gp(std::uint8_t i); @@ -16,6 +18,8 @@ public: void reg_hi(); private slots: + void instruction_fetch(machine::Instruction &inst); + // TODO fetch void regs_pc_update(std::uint32_t val); void regs_gp_update(std::uint8_t i, std::uint32_t val); void regs_hi_lo_update(bool hi, std::uint32_t val); @@ -26,7 +30,7 @@ private: bool gp_regs[32]; bool r_hi, r_lo; - bool con_regs_pc, con_regs_gp, con_regs_hi_lo; + bool con_fetch, con_regs_pc, con_regs_gp, con_regs_hi_lo; }; #endif // TRACER_H |