From a128ba7cd1ab506e3468c82c1060a7fb4ad909b1 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Fri, 30 Mar 2012 09:42:36 -0400 Subject: 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). --- src/mem/physical.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mem/physical.hh') 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: -- cgit v1.2.3