summaryrefslogtreecommitdiff
path: root/src/gpu-compute/wavefront.cc
diff options
context:
space:
mode:
authorTony Gutierrez <anthony.gutierrez@amd.com>2016-10-26 22:47:30 -0400
committerTony Gutierrez <anthony.gutierrez@amd.com>2016-10-26 22:47:30 -0400
commit98d8a7051d8caa9b5aebebe5bf16f9d731c34c0e (patch)
tree2b5e8751e90174376fd66157d4690987eec7638b /src/gpu-compute/wavefront.cc
parentc7a79c9a4298220852252738dbf5d7d174705333 (diff)
downloadgem5-98d8a7051d8caa9b5aebebe5bf16f9d731c34c0e.tar.xz
gpu-compute: add instruction mix stats for the gpu
Diffstat (limited to 'src/gpu-compute/wavefront.cc')
-rw-r--r--src/gpu-compute/wavefront.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu-compute/wavefront.cc b/src/gpu-compute/wavefront.cc
index 96f0d0e96..99ac24900 100644
--- a/src/gpu-compute/wavefront.cc
+++ b/src/gpu-compute/wavefront.cc
@@ -656,7 +656,11 @@ Wavefront::exec()
DPRINTF(GPUExec, "CU%d: WF[%d][%d]: wave[%d] Executing inst: %s "
"(pc: %i)\n", computeUnit->cu_id, simdId, wfSlotId, wfDynId,
ii->disassemble(), old_pc);
+
+ // update the instruction stats in the CU
+
ii->execute(ii);
+ computeUnit->updateInstStats(ii);
// access the VRF
computeUnit->vrf[simdId]->exec(ii, this);
srcRegOpDist.sample(ii->numSrcRegOperands());