summaryrefslogtreecommitdiff
path: root/src/mem/ruby/system/RubyPort.cc
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2010-08-20 11:46:13 -0700
committerBrad Beckmann <Brad.Beckmann@amd.com>2010-08-20 11:46:13 -0700
commitb6d08e0455a9256a157d683eb31c7af541c30ce9 (patch)
tree9734ebb80615f901aa2c0fa11d983c71fe5711e8 /src/mem/ruby/system/RubyPort.cc
parent9b130c153b2ce088fc0900da7290f62a06aaa30a (diff)
downloadgem5-b6d08e0455a9256a157d683eb31c7af541c30ce9.tar.xz
ruby: Fixed RubyPort sendTiming callbacks
Fixed RubyPort schedSendTiming calls to match ruby frequency.
Diffstat (limited to 'src/mem/ruby/system/RubyPort.cc')
-rw-r--r--src/mem/ruby/system/RubyPort.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mem/ruby/system/RubyPort.cc b/src/mem/ruby/system/RubyPort.cc
index a8edb03b2..46bef49c6 100644
--- a/src/mem/ruby/system/RubyPort.cc
+++ b/src/mem/ruby/system/RubyPort.cc
@@ -317,14 +317,16 @@ RubyPort::M5Port::hitCallback(PacketPtr pkt)
bool
RubyPort::M5Port::sendTiming(PacketPtr pkt)
{
- schedSendTiming(pkt, curTick + 1); //minimum latency, must be > 0
+ //minimum latency, must be > 0
+ schedSendTiming(pkt, curTick + (1 * g_eventQueue_ptr->getClock()));
return true;
}
bool
RubyPort::PioPort::sendTiming(PacketPtr pkt)
{
- schedSendTiming(pkt, curTick + 1); //minimum latency, must be > 0
+ //minimum latency, must be > 0
+ schedSendTiming(pkt, curTick + (1 * g_eventQueue_ptr->getClock()));
return true;
}