diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-01 20:43:42 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-01 20:47:36 +0100 |
commit | 128ce1ee2115b54d43db1334e12410b1cc216f10 (patch) | |
tree | 10593231884a85966f38ac1fff9d139ae75e1bbb /qtmips_cli/tracer.h | |
parent | 92b6d05aed7cbfa7ddb0c5dcc61318c69c03bc97 (diff) | |
download | qtmips-128ce1ee2115b54d43db1334e12410b1cc216f10.tar.gz qtmips-128ce1ee2115b54d43db1334e12410b1cc216f10.tar.bz2 qtmips-128ce1ee2115b54d43db1334e12410b1cc216f10.zip |
cli: extend tracer and implement reporter
Diffstat (limited to 'qtmips_cli/tracer.h')
-rw-r--r-- | qtmips_cli/tracer.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qtmips_cli/tracer.h b/qtmips_cli/tracer.h index d5a476b..245f418 100644 --- a/qtmips_cli/tracer.h +++ b/qtmips_cli/tracer.h @@ -11,12 +11,22 @@ public: // Trace registers void reg_pc(); + void reg_gp(std::uint8_t i); + void reg_lo(); + void reg_hi(); private slots: 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); private: machine::QtMipsMachine *machine; + + bool gp_regs[32]; + bool r_hi, r_lo; + + bool con_regs_pc, con_regs_gp, con_regs_hi_lo; }; #endif // TRACER_H |