summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/mem_fetch.h
diff options
context:
space:
mode:
authorTayler Hetherington <[email protected]>2012-09-16 13:38:57 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:49:20 -0700
commit9ceb6f2016a16aa9c877956fc2e8bc43dc697322 (patch)
tree52f22dd215702ad439e73800388a978b8125af8f /src/gpgpu-sim/mem_fetch.h
parent960a55b075be901ca14d1878f886bbea73456663 (diff)
Modified the cache hierarchy, reorganized code to eliminate code replication, implemented write allocate / write back policies in L2 cache, added configurable parameters in gpgpusim.config ("W" = Write Allocate, "N" = No write allocate -> "P" = Private, "S" = shared), modified the cache configuration lines to always be separated by ":" instead of ":" and ",", and modified L1 and L2 data cache to be "Write Back" caches instead of "Read Only".
Still need to implement Ahmed's sectored cache implementation. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14081]
Diffstat (limited to 'src/gpgpu-sim/mem_fetch.h')
-rw-r--r--src/gpgpu-sim/mem_fetch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpgpu-sim/mem_fetch.h b/src/gpgpu-sim/mem_fetch.h
index a4e8499..501d52a 100644
--- a/src/gpgpu-sim/mem_fetch.h
+++ b/src/gpgpu-sim/mem_fetch.h
@@ -99,10 +99,12 @@ public:
enum mem_access_type get_access_type() const { return m_access.get_type(); }
const active_mask_t& get_access_warp_mask() const { return m_access.get_warp_mask(); }
+ mem_access_byte_mask_t get_access_byte_mask() const { return m_access.get_byte_mask(); }
address_type get_pc() const { return m_inst.empty()?-1:m_inst.pc; }
const warp_inst_t &get_inst() { return m_inst; }
enum mem_fetch_status get_status() const { return m_status; }
+ const memory_config *get_mem_config(){return m_mem_config;}
private:
// request source information
unsigned m_request_uid;
@@ -131,6 +133,8 @@ private:
warp_inst_t m_inst;
static unsigned sm_next_mf_request_uid;
+
+ const class memory_config *m_mem_config;
};
#endif