summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-05-28 13:14:40 -0400
committerGitHub <[email protected]>2019-05-28 13:14:40 -0400
commitfb0618bb6905e70ad4055c1a2f7b1012508efaac (patch)
treeb302badc1adeddb1e270cec2dbcf7c2f07ed980e /src
parent112e85e32c08e9fa0a34bb0ec262d8e95df61e6b (diff)
parent895f18504daf849071936b0f3b97e07dd3878fa3 (diff)
Merge pull request #5 from echoedit/dev
Dev
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 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
{