diff options
| author | Jiangqiu Shen <[email protected]> | 2019-05-21 11:52:23 -0400 |
|---|---|---|
| committer | Jiangqiu Shen <[email protected]> | 2019-05-21 11:52:23 -0400 |
| commit | a42c5943803c065f0531f7634b2ec06496d40318 (patch) | |
| tree | 086c2973182f844dd090e60b5010f8b5aa6df06b /src/gpgpu-sim/gpu-cache.h | |
| parent | 0b73d6628a660a435f81877ca3be4b95d0e82930 (diff) | |
fix bugs in tag() and some other function
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.h')
| -rw-r--r-- | src/gpgpu-sim/gpu-cache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpgpu-sim/gpu-cache.h b/src/gpgpu-sim/gpu-cache.h index 673e128..9725270 100644 --- a/src/gpgpu-sim/gpu-cache.h +++ b/src/gpgpu-sim/gpu-cache.h @@ -681,15 +681,15 @@ public: // tag + index is required to check for hit/miss. Tag is now identical to the block address. //return addr >> (m_line_sz_log2+m_nset_log2); - return addr & ~(m_line_sz-1); + return addr & ~(new_addr_type)(m_line_sz-1); } new_addr_type block_addr( new_addr_type addr ) const { - return addr & ~(m_line_sz-1); + return addr & ~(new_addr_type)(m_line_sz-1); } new_addr_type mshr_addr( new_addr_type addr ) const { - return addr & ~(m_atom_sz-1); + return addr & ~(new_addr_type)(m_atom_sz-1); } enum mshr_config_t get_mshr_type() const { |
