summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMalek Musleh <malek.musleh@gmail.com>2013-01-14 10:05:12 -0600
committerMalek Musleh <malek.musleh@gmail.com>2013-01-14 10:05:12 -0600
commit1abf950f3c4ce407c39cb0c86c834b7048181c07 (patch)
treeecc3a4c15461d174bd35b4568f892ab56c0fd6c4 /src
parent20129837186a5eb28a1b1e2f8dcd441934af68a6 (diff)
downloadgem5-1abf950f3c4ce407c39cb0c86c834b7048181c07.tar.xz
ruby sequencer: converts cycles to ticks in deadlock panic()
This patch converts the panic() print outs in the Sequencer::wakeup() call from ruby cycles to Ticks(). This makes it easier to debug deadlocks with the ProtocolTrace flag so the issue time indicated in the panic message can be quickly searched for. Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src')
-rw-r--r--src/mem/ruby/system/Sequencer.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mem/ruby/system/Sequencer.cc b/src/mem/ruby/system/Sequencer.cc
index d57f80468..9b30fdbd5 100644
--- a/src/mem/ruby/system/Sequencer.cc
+++ b/src/mem/ruby/system/Sequencer.cc
@@ -104,8 +104,8 @@ Sequencer::wakeup()
"version: %d request.paddr: 0x%x m_readRequestTable: %d "
"current time: %u issue_time: %d difference: %d\n", m_version,
Address(request->pkt->getAddr()), m_readRequestTable.size(),
- current_time, request->issue_time,
- current_time - request->issue_time);
+ current_time * clockPeriod(), request->issue_time * clockPeriod(),
+ (current_time * clockPeriod()) - (request->issue_time * clockPeriod()));
}
RequestTable::iterator write = m_writeRequestTable.begin();
@@ -119,8 +119,8 @@ Sequencer::wakeup()
"version: %d request.paddr: 0x%x m_writeRequestTable: %d "
"current time: %u issue_time: %d difference: %d\n", m_version,
Address(request->pkt->getAddr()), m_writeRequestTable.size(),
- current_time, request->issue_time,
- current_time - request->issue_time);
+ current_time * clockPeriod(), request->issue_time * clockPeriod(),
+ (current_time * clockPeriod()) - (request->issue_time * clockPeriod()));
}
total_outstanding += m_writeRequestTable.size();