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>
This commit is contained in:
Malek Musleh 2013-01-14 10:05:12 -06:00
parent 2012983718
commit 1abf950f3c

View file

@ -104,8 +104,8 @@ Sequencer::wakeup()
"version: %d request.paddr: 0x%x m_readRequestTable: %d " "version: %d request.paddr: 0x%x m_readRequestTable: %d "
"current time: %u issue_time: %d difference: %d\n", m_version, "current time: %u issue_time: %d difference: %d\n", m_version,
Address(request->pkt->getAddr()), m_readRequestTable.size(), Address(request->pkt->getAddr()), m_readRequestTable.size(),
current_time, request->issue_time, current_time * clockPeriod(), request->issue_time * clockPeriod(),
current_time - request->issue_time); (current_time * clockPeriod()) - (request->issue_time * clockPeriod()));
} }
RequestTable::iterator write = m_writeRequestTable.begin(); RequestTable::iterator write = m_writeRequestTable.begin();
@ -119,8 +119,8 @@ Sequencer::wakeup()
"version: %d request.paddr: 0x%x m_writeRequestTable: %d " "version: %d request.paddr: 0x%x m_writeRequestTable: %d "
"current time: %u issue_time: %d difference: %d\n", m_version, "current time: %u issue_time: %d difference: %d\n", m_version,
Address(request->pkt->getAddr()), m_writeRequestTable.size(), Address(request->pkt->getAddr()), m_writeRequestTable.size(),
current_time, request->issue_time, current_time * clockPeriod(), request->issue_time * clockPeriod(),
current_time - request->issue_time); (current_time * clockPeriod()) - (request->issue_time * clockPeriod()));
} }
total_outstanding += m_writeRequestTable.size(); total_outstanding += m_writeRequestTable.size();