diff options
| author | Tor Aamodt <[email protected]> | 2010-10-16 11:59:28 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-10-16 11:59:28 -0800 |
| commit | 58459bf7a55010eccf9940cfdb53cbc854b0989c (patch) | |
| tree | cbbace76fa7d517cc1b1c6d2d7789a851289df96 /src/gpgpu-sim/mem_fetch.cc | |
| parent | 6c33482bbdbcd289e6ee14605b0f2698c151c5af (diff) | |
1. moving address decoding into a class (and out of cache entirely)
2. moving DRAM timing parameters into memory_config class
3. removing some likely useless statistics
4. other cleaning up of code
passing CUDA 3.1 regression
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7868]
Diffstat (limited to 'src/gpgpu-sim/mem_fetch.cc')
| -rw-r--r-- | src/gpgpu-sim/mem_fetch.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpgpu-sim/mem_fetch.cc b/src/gpgpu-sim/mem_fetch.cc index 50442c8..05835bf 100644 --- a/src/gpgpu-sim/mem_fetch.cc +++ b/src/gpgpu-sim/mem_fetch.cc @@ -82,7 +82,8 @@ mem_fetch::mem_fetch( new_addr_type addr, bool write, partial_write_mask_t partial_write_mask, enum mem_access_type mem_acc, - enum mf_type type ) + enum mf_type type, + const memory_config *config ) { m_request_uid = sm_next_mf_request_uid++; @@ -95,7 +96,8 @@ mem_fetch::mem_fetch( new_addr_type addr, m_mshr_id = mshr_id; if( inst ) m_inst = *inst; m_write = write; - addrdec_tlx(addr,&m_raw_addr); + config->m_address_mapping.addrdec_tlx(addr,&m_raw_addr); + m_partition_addr = config->m_address_mapping.partition_address(addr); m_mem_acc = mem_acc; m_type = type; m_timestamp = gpu_sim_cycle + gpu_tot_sim_cycle; |
