diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-06 14:42:49 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-06 14:42:49 +0100 |
commit | 608eed5c16366cae251f5d12ad1ed0b988b3ce46 (patch) | |
tree | bc338c8bee507c2a29b215b3c5f172c86f790933 /qtmips_machine/cache.h | |
parent | c27a1e6354c04904345855e1d28b0e711efa1575 (diff) | |
download | qtmips-608eed5c16366cae251f5d12ad1ed0b988b3ce46.tar.gz qtmips-608eed5c16366cae251f5d12ad1ed0b988b3ce46.tar.bz2 qtmips-608eed5c16366cae251f5d12ad1ed0b988b3ce46.zip |
Implement simple address-space ranges registration and example peripheral.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/cache.h')
-rw-r--r-- | qtmips_machine/cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_machine/cache.h b/qtmips_machine/cache.h index 5e19e10..bb089fe 100644 --- a/qtmips_machine/cache.h +++ b/qtmips_machine/cache.h @@ -46,7 +46,7 @@ namespace machine { class Cache : public MemoryAccess { Q_OBJECT public: - Cache(Memory *m, const MachineConfigCache *c, unsigned memory_access_penalty_r = 1, unsigned memory_access_penalty_w = 1); + Cache(MemoryAccess *m, const MachineConfigCache *c, unsigned memory_access_penalty_r = 1, unsigned memory_access_penalty_w = 1); bool wword(std::uint32_t address, std::uint32_t value); std::uint32_t rword(std::uint32_t address) const; @@ -72,7 +72,7 @@ signals: private: MachineConfigCache cnf; - Memory *mem; + MemoryAccess *mem; unsigned access_pen_r, access_pen_w; std::uint32_t uncached_start; std::uint32_t uncached_last; |