summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/mem_fetch.h
diff options
context:
space:
mode:
authortgrogers <[email protected]>2015-02-20 13:27:06 -0800
committertgrogers <[email protected]>2015-02-20 13:27:06 -0800
commitd46bf67b50b265dd3afae7c9a6a13c4cbdd6176f (patch)
treeaef56cfce1cc6f595040cf51a3e39f324a41e512 /src/gpgpu-sim/mem_fetch.h
parent7cd0edfe0cb654280c30afef89a563867d9e67ed (diff)
parent1e925effd20bf6fb78b19a4cdb96b17691a29b29 (diff)
Merge pull request #7 from andrewboktor/fix_icache
Fixing icache bug where for each miss we also count a hit.
Diffstat (limited to 'src/gpgpu-sim/mem_fetch.h')
-rw-r--r--src/gpgpu-sim/mem_fetch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpgpu-sim/mem_fetch.h b/src/gpgpu-sim/mem_fetch.h
index f788c2b..c89edbb 100644
--- a/src/gpgpu-sim/mem_fetch.h
+++ b/src/gpgpu-sim/mem_fetch.h
@@ -82,6 +82,7 @@ public:
bool is_write() {return m_access.is_write();}
void set_addr(new_addr_type addr) { m_access.set_addr(addr); }
new_addr_type get_addr() const { return m_access.get_addr(); }
+ unsigned get_access_size() const { return m_access.get_size(); }
new_addr_type get_partition_addr() const { return m_partition_addr; }
unsigned get_sub_partition_id() const { return m_raw_addr.sub_partition; }
bool get_is_write() const { return m_access.is_write(); }