summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gpu-compute/SConscript4
-rw-r--r--src/gpu-compute/vector_register_file.hh3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/gpu-compute/SConscript b/src/gpu-compute/SConscript
index 2de96df24..88c1cf036 100644
--- a/src/gpu-compute/SConscript
+++ b/src/gpu-compute/SConscript
@@ -89,6 +89,7 @@ DebugFlag('GPUPrefetch')
DebugFlag('GPUReg')
DebugFlag('GPUSync')
DebugFlag('GPUTLB')
+DebugFlag('GPUVRF')
DebugFlag('HSALoader')
DebugFlag('HSAIL')
DebugFlag('HSAILObject')
@@ -96,4 +97,5 @@ DebugFlag('Predictor')
DebugFlag('WavefrontStack')
CompoundFlag('GPUALL', ['GPUCoalescer', 'GPUDisp', 'GPUExec', 'GPUFetch',
- 'GPUMem', 'GPUPort', 'GPUSync', 'GPUTLB', 'HSAIL'])
+ 'GPUMem', 'GPUPort', 'GPUSync', 'GPUTLB', 'HSAIL',
+ 'GPUVRF'])
diff --git a/src/gpu-compute/vector_register_file.hh b/src/gpu-compute/vector_register_file.hh
index 1cb011a1e..360b2fb3c 100644
--- a/src/gpu-compute/vector_register_file.hh
+++ b/src/gpu-compute/vector_register_file.hh
@@ -40,6 +40,7 @@
#include "base/statistics.hh"
#include "base/types.hh"
+#include "debug/GPUVRF.hh"
#include "gpu-compute/vector_register_state.hh"
#include "sim/sim_object.hh"
@@ -71,6 +72,7 @@ class VectorRegisterFile : public SimObject
read(int regIdx, int threadId=0)
{
T p0 = vgprState->read<T>(regIdx, threadId);
+ DPRINTF(GPUVRF, "reading vreg[%d][%d] = %u\n", regIdx, threadId, (uint64_t)p0);
return p0;
}
@@ -80,6 +82,7 @@ class VectorRegisterFile : public SimObject
void
write(int regIdx, T value, int threadId=0)
{
+ DPRINTF(GPUVRF, "writing vreg[%d][%d] = %u\n", regIdx, threadId, (uint64_t)value);
vgprState->write<T>(regIdx, value, threadId);
}