summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2019-06-18 17:51:28 -0400
committerMahmoud <[email protected]>2019-06-18 17:51:28 -0400
commitf025d73e8fc28f815e5d34b4e1427ed1918e8555 (patch)
treef2340680bc36c21f06fb190d99ffbc21e629b1a0 /src
parentfe58efe9c8ca38f7d0f3781e54b04bc526bdfd07 (diff)
parent6337105df018f25ad1b58afa040d8b1006f2a0ce (diff)
Merge branch 'dev' of https://github.com/gpgpu-sim/gpgpu-sim_distribution into dev-private
Diffstat (limited to 'src')
-rw-r--r--src/gpgpu-sim/gpu-cache.h6
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
{