Don't use magic numbers.
[gem5.git] / arch / alpha / isa_traits.hh
index c73e790241200f5be26d5b214b539678617235bf..b22b2fa298c8414daf6e58eef8669ecfdefe6530 100644 (file)
@@ -121,6 +121,11 @@ class AlphaISA
         Addr           lock_addr;      // lock address for LL/SC
     } MiscRegFile;
 
+static const Addr PageShift = 13;
+static const Addr PageBytes = ULL(1) << PageShift;
+static const Addr PageMask = ~(PageBytes - 1);
+static const Addr PageOffset = PageBytes - 1;
+
 #ifdef FULL_SYSTEM
 
     typedef uint64_t InternalProcReg;