misc: Replace M5_VAR_USED with GEM5_VAR_USED.
Change-Id: I64a874ccd1a9ac0541dfa01971d7d620a98c9d32 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45231 Tested-by: kokoro <noreply+kokoro@google.com> Maintainer: Gabe Black <gabe.black@gmail.com> Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
This commit is contained in:
@@ -352,7 +352,7 @@ ComputeUnit::startWavefront(Wavefront *w, int waveId, LdsChunk *ldsChunk,
|
||||
// set the wavefront context to have a pointer to this section of the LDS
|
||||
w->ldsChunk = ldsChunk;
|
||||
|
||||
M5_VAR_USED int32_t refCount =
|
||||
GEM5_VAR_USED int32_t refCount =
|
||||
lds.increaseRefCounter(w->dispatchId, w->wgId);
|
||||
DPRINTF(GPUDisp, "CU%d: increase ref ctr wg[%d] to [%d]\n",
|
||||
cu_id, w->wgId, refCount);
|
||||
@@ -956,7 +956,7 @@ ComputeUnit::DataPort::recvReqRetry()
|
||||
|
||||
for (int i = 0; i < len; ++i) {
|
||||
PacketPtr pkt = retries.front().first;
|
||||
M5_VAR_USED GPUDynInstPtr gpuDynInst = retries.front().second;
|
||||
GEM5_VAR_USED GPUDynInstPtr gpuDynInst = retries.front().second;
|
||||
DPRINTF(GPUMem, "CU%d: WF[%d][%d]: retry mem inst addr %#x\n",
|
||||
computeUnit->cu_id, gpuDynInst->simdId, gpuDynInst->wfSlotId,
|
||||
pkt->req->getPaddr());
|
||||
@@ -990,7 +990,7 @@ ComputeUnit::SQCPort::recvReqRetry()
|
||||
|
||||
for (int i = 0; i < len; ++i) {
|
||||
PacketPtr pkt = retries.front().first;
|
||||
M5_VAR_USED Wavefront *wavefront = retries.front().second;
|
||||
GEM5_VAR_USED Wavefront *wavefront = retries.front().second;
|
||||
DPRINTF(GPUFetch, "CU%d: WF[%d][%d]: retrying FETCH addr %#x\n",
|
||||
computeUnit->cu_id, wavefront->simdId, wavefront->wfSlotId,
|
||||
pkt->req->getPaddr());
|
||||
@@ -1402,7 +1402,7 @@ ComputeUnit::DTLBPort::recvTimingResp(PacketPtr pkt)
|
||||
DTLBPort::SenderState *sender_state =
|
||||
safe_cast<DTLBPort::SenderState*>(translation_state->saved);
|
||||
|
||||
M5_VAR_USED Wavefront *w =
|
||||
GEM5_VAR_USED Wavefront *w =
|
||||
computeUnit->wfList[sender_state->_gpuDynInst->simdId]
|
||||
[sender_state->_gpuDynInst->wfSlotId];
|
||||
|
||||
@@ -1571,7 +1571,7 @@ ComputeUnit::DataPort::processMemReqEvent(PacketPtr pkt)
|
||||
{
|
||||
SenderState *sender_state = safe_cast<SenderState*>(pkt->senderState);
|
||||
GPUDynInstPtr gpuDynInst = sender_state->_gpuDynInst;
|
||||
M5_VAR_USED ComputeUnit *compute_unit = computeUnit;
|
||||
GEM5_VAR_USED ComputeUnit *compute_unit = computeUnit;
|
||||
|
||||
if (!(sendTimingReq(pkt))) {
|
||||
retries.push_back(std::make_pair(pkt, gpuDynInst));
|
||||
@@ -1600,7 +1600,7 @@ ComputeUnit::ScalarDataPort::MemReqEvent::process()
|
||||
{
|
||||
SenderState *sender_state = safe_cast<SenderState*>(pkt->senderState);
|
||||
GPUDynInstPtr gpuDynInst = sender_state->_gpuDynInst;
|
||||
M5_VAR_USED ComputeUnit *compute_unit = scalarDataPort.computeUnit;
|
||||
GEM5_VAR_USED ComputeUnit *compute_unit = scalarDataPort.computeUnit;
|
||||
|
||||
if (!(scalarDataPort.sendTimingReq(pkt))) {
|
||||
scalarDataPort.retries.push_back(pkt);
|
||||
@@ -1640,7 +1640,7 @@ ComputeUnit::DTLBPort::recvReqRetry()
|
||||
|
||||
for (int i = 0; i < len; ++i) {
|
||||
PacketPtr pkt = retries.front();
|
||||
M5_VAR_USED Addr vaddr = pkt->req->getVaddr();
|
||||
GEM5_VAR_USED Addr vaddr = pkt->req->getVaddr();
|
||||
DPRINTF(GPUTLB, "CU%d: retrying D-translaton for address%#x", vaddr);
|
||||
|
||||
if (!sendTimingReq(pkt)) {
|
||||
@@ -1679,7 +1679,7 @@ ComputeUnit::ScalarDTLBPort::recvTimingResp(PacketPtr pkt)
|
||||
GPUDynInstPtr gpuDynInst = sender_state->_gpuDynInst;
|
||||
delete pkt->senderState;
|
||||
|
||||
M5_VAR_USED Wavefront *w = gpuDynInst->wavefront();
|
||||
GEM5_VAR_USED Wavefront *w = gpuDynInst->wavefront();
|
||||
|
||||
DPRINTF(GPUTLB, "CU%d: WF[%d][%d][wv=%d]: scalar DTLB port received "
|
||||
"translation: PA %#x -> %#x\n", computeUnit->cu_id, w->simdId,
|
||||
@@ -1718,7 +1718,7 @@ ComputeUnit::ScalarDTLBPort::recvTimingResp(PacketPtr pkt)
|
||||
bool
|
||||
ComputeUnit::ITLBPort::recvTimingResp(PacketPtr pkt)
|
||||
{
|
||||
M5_VAR_USED Addr line = pkt->req->getPaddr();
|
||||
GEM5_VAR_USED Addr line = pkt->req->getPaddr();
|
||||
DPRINTF(GPUTLB, "CU%d: ITLBPort received %#x->%#x\n",
|
||||
computeUnit->cu_id, pkt->req->getVaddr(), line);
|
||||
|
||||
@@ -1784,7 +1784,7 @@ ComputeUnit::ITLBPort::recvReqRetry()
|
||||
|
||||
for (int i = 0; i < len; ++i) {
|
||||
PacketPtr pkt = retries.front();
|
||||
M5_VAR_USED Addr vaddr = pkt->req->getVaddr();
|
||||
GEM5_VAR_USED Addr vaddr = pkt->req->getVaddr();
|
||||
DPRINTF(GPUTLB, "CU%d: retrying I-translaton for address%#x", vaddr);
|
||||
|
||||
if (!sendTimingReq(pkt)) {
|
||||
@@ -2037,7 +2037,7 @@ ComputeUnit::LDSPort::sendTimingReq(PacketPtr pkt)
|
||||
dynamic_cast<ComputeUnit::LDSPort::SenderState*>(pkt->senderState);
|
||||
fatal_if(!sender_state, "packet without a valid sender state");
|
||||
|
||||
M5_VAR_USED GPUDynInstPtr gpuDynInst = sender_state->getMemInst();
|
||||
GEM5_VAR_USED GPUDynInstPtr gpuDynInst = sender_state->getMemInst();
|
||||
|
||||
if (isStalled()) {
|
||||
fatal_if(retries.empty(), "must have retries waiting to be stalled");
|
||||
|
||||
@@ -582,7 +582,7 @@ GPUComputeDriver::ioctl(ThreadContext *tc, unsigned req, Addr ioc_buf)
|
||||
|
||||
assert(isdGPU);
|
||||
assert((args->va_addr % TheISA::PageBytes) == 0);
|
||||
M5_VAR_USED Addr mmap_offset = 0;
|
||||
GEM5_VAR_USED Addr mmap_offset = 0;
|
||||
|
||||
Request::CacheCoherenceFlags mtype = defaultMtype;
|
||||
Addr pa_addr = 0;
|
||||
|
||||
@@ -758,7 +758,7 @@ ScheduleStage::reserveResources()
|
||||
// that we've reserved a global and local memory unit. Thus,
|
||||
// we need to mark the latter execution unit as not available.
|
||||
if (execUnitIds.size() > 1) {
|
||||
M5_VAR_USED int lm_exec_unit = wf->localMem;
|
||||
GEM5_VAR_USED int lm_exec_unit = wf->localMem;
|
||||
assert(toExecute.dispatchStatus(lm_exec_unit)
|
||||
== SKIP);
|
||||
}
|
||||
@@ -767,7 +767,7 @@ ScheduleStage::reserveResources()
|
||||
// Verify the GM pipe for this wave is ready to execute
|
||||
// and the wave in the GM pipe is the same as the wave
|
||||
// in the LM pipe
|
||||
M5_VAR_USED int gm_exec_unit = wf->globalMem;
|
||||
GEM5_VAR_USED int gm_exec_unit = wf->globalMem;
|
||||
assert(wf->wfDynId == toExecute
|
||||
.readyInst(gm_exec_unit)->wfDynId);
|
||||
assert(toExecute.dispatchStatus(gm_exec_unit)
|
||||
|
||||
Reference in New Issue
Block a user