From 9dc519887f61ae33ff82bb125fb69398503f91f6 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Sun, 30 Jun 2019 18:22:27 +0200 Subject: Memory change counter moved to MemoryAccess and external changes notification added. This change together with use of PhysAddrSpace as the memory content source for memory and program view allows to access and monitor contents of peripheral registers and frame-buffer memory from graphic user interface. Signed-off-by: Pavel Pisa --- qtmips_machine/peripspiled.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qtmips_machine/peripspiled.h') diff --git a/qtmips_machine/peripspiled.h b/qtmips_machine/peripspiled.h index 8c884e3..70c8019 100644 --- a/qtmips_machine/peripspiled.h +++ b/qtmips_machine/peripspiled.h @@ -69,7 +69,11 @@ public slots: public: bool wword(std::uint32_t address, std::uint32_t value); std::uint32_t rword(std::uint32_t address, bool debug_access = false) const; + virtual std::uint32_t get_change_counter() const override; private: + void knob_update_notify(std::uint32_t val, std::uint32_t mask, int shift); + + mutable std::uint32_t change_counter; std::uint32_t spiled_reg_led_line; std::uint32_t spiled_reg_led_rgb1; std::uint32_t spiled_reg_led_rgb2; -- cgit v1.2.3