summaryrefslogtreecommitdiff
path: root/src/mem/ruby/system/MemoryNode.hh
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2013-02-10 21:26:25 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2013-02-10 21:26:25 -0600
commitb742081cc13f31bb5ebb10739a2e37727d80a085 (patch)
treee76014a9cfcbbeb01c6b8998c8affba14f4933d3 /src/mem/ruby/system/MemoryNode.hh
parent89f86dbd282066595f90a2163140b347f84aee44 (diff)
downloadgem5-b742081cc13f31bb5ebb10739a2e37727d80a085.tar.xz
ruby: replace Time with Cycles in Memory Controller
Diffstat (limited to 'src/mem/ruby/system/MemoryNode.hh')
-rw-r--r--src/mem/ruby/system/MemoryNode.hh12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mem/ruby/system/MemoryNode.hh b/src/mem/ruby/system/MemoryNode.hh
index 5bf988935..f215ab649 100644
--- a/src/mem/ruby/system/MemoryNode.hh
+++ b/src/mem/ruby/system/MemoryNode.hh
@@ -40,8 +40,6 @@
#include <iostream>
-#include "mem/protocol/MemoryRequestType.hh"
-#include "mem/ruby/common/Global.hh"
#include "mem/ruby/common/TypeDefines.hh"
#include "mem/ruby/slicc_interface/Message.hh"
@@ -49,10 +47,10 @@ class MemoryNode
{
public:
// old constructor
- MemoryNode(const Time& time, int counter, const MsgPtr& msgptr,
+ MemoryNode(const Cycles& time, int counter, const MsgPtr& msgptr,
const physical_address_t addr, const bool is_mem_read)
+ : m_time(time)
{
- m_time = time;
m_msg_counter = counter;
m_msgptr = msgptr;
m_addr = addr;
@@ -61,11 +59,11 @@ class MemoryNode
}
// new constructor
- MemoryNode(const Time& time, const MsgPtr& msgptr,
+ MemoryNode(const Cycles& time, const MsgPtr& msgptr,
const physical_address_t addr, const bool is_mem_read,
const bool is_dirty_wb)
+ : m_time(time)
{
- m_time = time;
m_msg_counter = 0;
m_msgptr = msgptr;
m_addr = addr;
@@ -75,7 +73,7 @@ class MemoryNode
void print(std::ostream& out) const;
- Time m_time;
+ Cycles m_time;
int m_msg_counter;
MsgPtr m_msgptr;
physical_address_t m_addr;