From 1126b91af5bd2d4477b3e78e8c648b3a512b24f7 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Thu, 7 Feb 2019 18:26:45 +0100 Subject: Added method to retrieve memory location status. It can inform if given location is cached or if given range is invalid in address space. Signed-off-by: Pavel Pisa --- qtmips_machine/memory.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qtmips_machine/memory.h') diff --git a/qtmips_machine/memory.h b/qtmips_machine/memory.h index bbcbd13..8c8a319 100644 --- a/qtmips_machine/memory.h +++ b/qtmips_machine/memory.h @@ -60,6 +60,7 @@ public: std::uint32_t read_ctl(enum AccessControl ctl, std::uint32_t offset) const; virtual void sync(); + virtual enum LocationStatus location_status(std::uint32_t offset); protected: virtual bool wword(std::uint32_t offset, std::uint32_t value) = 0; -- cgit v1.2.3