From 608eed5c16366cae251f5d12ad1ed0b988b3ce46 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Wed, 6 Feb 2019 14:42:49 +0100 Subject: Implement simple address-space ranges registration and example peripheral. Signed-off-by: Pavel Pisa --- qtmips_machine/cache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qtmips_machine/cache.h') 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; -- cgit v1.2.3