summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/mem_fetch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpgpu-sim/mem_fetch.h')
-rw-r--r--src/gpgpu-sim/mem_fetch.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpgpu-sim/mem_fetch.h b/src/gpgpu-sim/mem_fetch.h
index 7704218..add4792 100644
--- a/src/gpgpu-sim/mem_fetch.h
+++ b/src/gpgpu-sim/mem_fetch.h
@@ -96,6 +96,12 @@ class mem_fetch {
unsigned get_sid() const { return m_sid; }
unsigned get_tpc() const { return m_tpc; }
unsigned get_wid() const { return m_wid; }
+ // MEM co-issue source attribution carried via the access. get_wid() still
+ // returns the composite's stamped wid (source-wid-overridden via allocator).
+ // This extra getter exposes the split id for intra-warp disambiguation.
+ unsigned get_access_source_split_id() const {
+ return m_access.get_source_split_id();
+ }
bool istexture() const;
bool isconst() const;
enum mf_type get_type() const { return m_type; }