diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-06-30 18:22:27 +0200 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-06-30 18:22:27 +0200 |
commit | 9dc519887f61ae33ff82bb125fb69398503f91f6 (patch) | |
tree | c0074870df060adc0f546715e39169cacc8d5667 /qtmips_machine/serialport.h | |
parent | c86a491e26800f620b51ced800b612e73da1cced (diff) | |
download | qtmips-9dc519887f61ae33ff82bb125fb69398503f91f6.tar.gz qtmips-9dc519887f61ae33ff82bb125fb69398503f91f6.tar.bz2 qtmips-9dc519887f61ae33ff82bb125fb69398503f91f6.zip |
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 <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/serialport.h')
-rw-r--r-- | qtmips_machine/serialport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qtmips_machine/serialport.h b/qtmips_machine/serialport.h index 0f469b7..095c06e 100644 --- a/qtmips_machine/serialport.h +++ b/qtmips_machine/serialport.h @@ -63,7 +63,10 @@ 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 rx_queue_check_internal() const; + mutable std::uint32_t change_counter; void pool_rx_byte() const; void update_rx_irq() const; void update_tx_irq() const; |