diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-03 12:43:17 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-03 12:43:17 +0100 |
commit | 22e2fe92f52e68b8951a2dff1a0de9e05ddf9c7f (patch) | |
tree | 24d16206784d98f768ff800ab50eb8389d22f295 /qtmips_cli/tracer.h | |
parent | 76876d39ba4a9c842786304b8ccf0249fab2999c (diff) | |
download | qtmips-22e2fe92f52e68b8951a2dff1a0de9e05ddf9c7f.tar.gz qtmips-22e2fe92f52e68b8951a2dff1a0de9e05ddf9c7f.tar.bz2 qtmips-22e2fe92f52e68b8951a2dff1a0de9e05ddf9c7f.zip |
Add trace-feth to qtmips_cli
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 |