From: Nilay Vaish Date: Tue, 22 May 2012 16:32:57 +0000 (-0500) Subject: Ruby Sequencer: Schedule deadlock check event at correct time X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a966d5eeb2f73c5c3e48a7abe7db4a47902d121;p=gem5.git Ruby Sequencer: Schedule deadlock check event at correct time The scheduling of the deadlock check event was being done incorrectly as the clock was not being multiplied, so as to convert the time into ticks. This patch removes that bug. --- diff --git a/src/mem/ruby/system/Sequencer.cc b/src/mem/ruby/system/Sequencer.cc index 4109a06fd..de7c8154b 100644 --- a/src/mem/ruby/system/Sequencer.cc +++ b/src/mem/ruby/system/Sequencer.cc @@ -220,7 +220,9 @@ Sequencer::insertRequest(PacketPtr pkt, RubyRequestType request_type) // See if we should schedule a deadlock check if (deadlockCheckEvent.scheduled() == false) { - schedule(deadlockCheckEvent, m_deadlock_threshold + curTick()); + schedule(deadlockCheckEvent, + m_deadlock_threshold * g_eventQueue_ptr->getClock() + + curTick()); } Address line_addr(pkt->getAddr());