diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2012-09-10 12:21:01 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2012-09-10 12:21:01 -0500 |
commit | c5bf1390aa129fefa7102e2de2998c0e6b09b5b0 (patch) | |
tree | abd84f95c72cc3c7652d7471fed0d8cca74a9987 /src/mem/ruby/system/RubyPort.cc | |
parent | 4e6f048ef0f201718ac1a24ff917fb4d42a2b181 (diff) | |
download | gem5-c5bf1390aa129fefa7102e2de2998c0e6b09b5b0.tar.xz |
Ruby System: Convert to Clocked Object
This patch moves Ruby System from being a SimObject to recently introduced
ClockedObject.
Diffstat (limited to 'src/mem/ruby/system/RubyPort.cc')
-rw-r--r-- | src/mem/ruby/system/RubyPort.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mem/ruby/system/RubyPort.cc b/src/mem/ruby/system/RubyPort.cc index b24f649a5..d14b3dba7 100644 --- a/src/mem/ruby/system/RubyPort.cc +++ b/src/mem/ruby/system/RubyPort.cc @@ -197,8 +197,8 @@ RubyPort::M5Port::recvTimingReq(PacketPtr pkt) pkt->getAddr()); // send next cycle - ruby_port->pio_port.schedTimingReq(pkt, curTick() + - g_system_ptr->getClock()); + ruby_port->pio_port.schedTimingReq(pkt, + curTick() + g_system_ptr->clockPeriod()); return true; } @@ -651,7 +651,7 @@ RubyPort::M5Port::hitCallback(PacketPtr pkt) if (needsResponse) { DPRINTF(RubyPort, "Sending packet back over port\n"); // send next cycle - schedTimingResp(pkt, curTick() + g_system_ptr->getClock()); + schedTimingResp(pkt, curTick() + g_system_ptr->clockPeriod()); } else { delete pkt; } |