From 53e4c1bc257deba2341467d0438a55e4074f3059 Mon Sep 17 00:00:00 2001 From: Andrew Boktor Date: Wed, 18 Feb 2015 13:43:19 -0800 Subject: Fixing icache bug where for each miss we also count a hit. --- src/gpgpu-sim/mem_fetch.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gpgpu-sim/mem_fetch.h') 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(); } -- cgit v1.3