diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2015-11-06 03:26:16 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2015-11-06 03:26:16 -0500 |
commit | 2cb5467e8514934c4d88304c65050adead0ffc7e (patch) | |
tree | 693dc8a9aa6fdadb2d1856bece4510e30527c256 /src/mem/cache | |
parent | 3747e178ed11ef0d73a50443bc9dc5498a91b1c9 (diff) | |
download | gem5-2cb5467e8514934c4d88304c65050adead0ffc7e.tar.xz |
misc: Appease clang static analyzer
A few minor fixes to issues identified by the clang static analyzer.
Diffstat (limited to 'src/mem/cache')
-rw-r--r-- | src/mem/cache/tags/fa_lru.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/cache/tags/fa_lru.cc b/src/mem/cache/tags/fa_lru.cc index 3f717e3a7..c9531d12c 100644 --- a/src/mem/cache/tags/fa_lru.cc +++ b/src/mem/cache/tags/fa_lru.cc @@ -67,7 +67,7 @@ FALRU::FALRU(const Params *p) numCaches = floorLog2(size) - 17; if (numCaches >0){ cacheBoundaries = new FALRUBlk *[numCaches]; - cacheMask = (1 << numCaches) - 1; + cacheMask = (ULL(1) << numCaches) - 1; } else { cacheMask = 0; } |