summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/shader.cc
diff options
context:
space:
mode:
authormkhairy <[email protected]>2021-05-21 17:57:43 -0400
committerGitHub <[email protected]>2021-05-21 17:57:43 -0400
commitce4f20f308eaeccfeb706201e02a7d97b3d33efa (patch)
treedca4d006b62d2d3b1d583bdbc8a270c076396bac /src/gpgpu-sim/shader.cc
parent2aef4e3d5a662d04da03ec782b116d16a5bcc012 (diff)
parentb814c52fe9c4538669d845c5f05b247348f6fd1d (diff)
Merge pull request #17 from JRPan/rewrite-l2-breakdown
Rewrite l2 breakdown
Diffstat (limited to 'src/gpgpu-sim/shader.cc')
-rw-r--r--src/gpgpu-sim/shader.cc19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc
index 7f27b7b..51366de 100644
--- a/src/gpgpu-sim/shader.cc
+++ b/src/gpgpu-sim/shader.cc
@@ -62,18 +62,19 @@ mem_fetch *shader_core_mem_fetch_allocator::alloc(
return mf;
}
-mem_fetch *shader_core_mem_fetch_allocator::alloc(
- new_addr_type addr, mem_access_type type,
- const active_mask_t &active_mask,
- const mem_access_byte_mask_t &byte_mask,
- const mem_access_sector_mask_t &sector_mask,
- unsigned size, bool wr,
- unsigned long long cycle) const {
+mem_fetch *shader_core_mem_fetch_allocator::alloc(new_addr_type addr, mem_access_type type,
+ const active_mask_t &active_mask,
+ const mem_access_byte_mask_t &byte_mask,
+ const mem_access_sector_mask_t &sector_mask,
+ unsigned size, bool wr,
+ unsigned long long cycle,
+ unsigned wid, unsigned sid,
+ unsigned tpc, mem_fetch *original_mf) const {
mem_access_t access(type, addr, size, wr, active_mask, byte_mask,
sector_mask, m_memory_config->gpgpu_ctx);
mem_fetch *mf =
- new mem_fetch(access, NULL, wr ? WRITE_PACKET_SIZE : READ_PACKET_SIZE, -1,
- m_core_id, m_cluster_id, m_memory_config, cycle);
+ new mem_fetch(access, NULL, wr ? WRITE_PACKET_SIZE : READ_PACKET_SIZE, wid,
+ m_core_id, m_cluster_id, m_memory_config, cycle,original_mf);
return mf;
}
/////////////////////////////////////////////////////////////////////////////