summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mem/cache/prefetch/base.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/cache/prefetch/base.cc b/src/mem/cache/prefetch/base.cc
index 3f5b67e6a..53260ae0d 100644
--- a/src/mem/cache/prefetch/base.cc
+++ b/src/mem/cache/prefetch/base.cc
@@ -140,7 +140,7 @@ BasePrefetcher::samePage(Addr a, Addr b) const
Addr
BasePrefetcher::blockAddress(Addr a) const
{
- return a & ~(blkSize-1);
+ return a & ~((Addr)blkSize-1);
}
Addr