diff options
| author | Mengchi Zhang <[email protected]> | 2019-05-26 17:46:39 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-05-26 17:46:39 -0400 |
| commit | 05a347b1a0105f1c0ca0a591e3a9a019336803fe (patch) | |
| tree | 3976356f8ab878d7bfda4b0134de0d3aaa823536 /src/gpgpu-sim/gpu-cache.h | |
| parent | dc835911d5320008b2c227722a90240a8f6b0f3a (diff) | |
| parent | 5837143ef70e20c362083b36c55e4c473f59f358 (diff) | |
Merge pull request #1 from gpgpu-sim/dev
Dev
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 85e534e..d11a7fd 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 { |
