gpu-compute: Fix scalar register ready check
Replaces some curly braces that were accidentally removed causing the function to return false even when it shouldn't Change-Id: I15fb4167468c8e3dd1107f1ca3dc98c48df4611b Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/44045 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com> Reviewed-by: Alex Dutu <alexandru.dutu@amd.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Matt Sinclair <mattdsinclair@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -52,11 +52,12 @@ ScalarRegisterFile::operandsReady(Wavefront *w, GPUDynInstPtr ii) const
|
||||
{
|
||||
for (const auto& srcScalarOp : ii->srcScalarRegOperands()) {
|
||||
for (const auto& physIdx : srcScalarOp.physIndices()) {
|
||||
if (regBusy(physIdx))
|
||||
if (regBusy(physIdx)) {
|
||||
DPRINTF(GPUSRF, "RAW stall: WV[%d]: %s: physReg[%d]\n",
|
||||
w->wfDynId, ii->disassemble(), physIdx);
|
||||
w->stats.numTimesBlockedDueRAWDependencies++;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user