summaryrefslogtreecommitdiff
path: root/src/mem/physical.hh
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-03-30 09:42:36 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2012-03-30 09:42:36 -0400
commita128ba7cd1ab506e3468c82c1060a7fb4ad909b1 (patch)
tree626dc6046e0c8edb99a7f7a9db4c8ef7d8664636 /src/mem/physical.hh
parentf9d403a7b95c50a8b75f8442101eb87ca465f967 (diff)
downloadgem5-a128ba7cd1ab506e3468c82c1060a7fb4ad909b1.tar.xz
Ruby: Remove the physMemPort and instead access memory directly
This patch removes the physMemPort from the RubySequencer and instead uses the system pointer to access the physmem. The system already keeps track of the physmem and the valid memory address ranges, and with this patch we merely make use of that existing functionality. The memory is modified so that it is possible to call the access functions (atomic and functional) without going through the port, and the memory is allowed to be unconnected, i.e. have no ports (since Ruby does not attach it like the conventional memory system).
Diffstat (limited to 'src/mem/physical.hh')
-rw-r--r--src/mem/physical.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mem/physical.hh b/src/mem/physical.hh
index 452ac3fc0..23d4052fa 100644
--- a/src/mem/physical.hh
+++ b/src/mem/physical.hh
@@ -198,9 +198,11 @@ class PhysicalMemory : public MemObject
void virtual init();
unsigned int drain(Event *de);
- protected:
Tick doAtomicAccess(PacketPtr pkt);
void doFunctionalAccess(PacketPtr pkt);
+
+
+ protected:
virtual Tick calculateLatency(PacketPtr pkt);
public: