summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/shader.cc
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-11-29 19:53:45 -0800
committerTor Aamodt <[email protected]>2010-11-29 19:53:45 -0800
commit7a47f9cd62902d960a989a920d882f3b77fe7b2a (patch)
tree0a64d2d4ffd2572bc5758f7300138ac25e4f4049 /src/gpgpu-sim/shader.cc
parent5a52fa70980d905f1117250d0508c529293c9049 (diff)
make an explicit read operands stage
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 8174]
Diffstat (limited to 'src/gpgpu-sim/shader.cc')
-rw-r--r--src/gpgpu-sim/shader.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc
index 10845e5..169adbe 100644
--- a/src/gpgpu-sim/shader.cc
+++ b/src/gpgpu-sim/shader.cc
@@ -692,6 +692,11 @@ void shader_core_ctx::decode()
m_stats->shader_cycle_distro[2]++; // pipeline stalled
}
+void shader_core_ctx::read_operands()
+{
+ m_operand_collector.step();
+}
+
address_type coalesced_segment(address_type addr, unsigned segment_size_lg2bytes)
{
return (addr >> segment_size_lg2bytes);
@@ -1470,7 +1475,7 @@ void shader_core_ctx::cycle()
{
writeback();
execute();
- m_operand_collector.step();
+ read_operands();
decode();
fetch();
}