From d55eb90fc73e27d26e64daa4c69efc3beee00429 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Mon, 25 Oct 2004 16:23:22 -0400 Subject: Don't use magic numbers. arch/alpha/isa_traits.hh: Move defines to non full system code section so they can be used elsewhere cpu/simple_cpu/simple_cpu.cc: Don't use magic numbers cpu/simple_cpu/simple_cpu.hh: simple format nit --HG-- extra : convert_revision : b8d492218340d41ab9420c6ad1e81a197db1c132 --- arch/alpha/isa_traits.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arch') diff --git a/arch/alpha/isa_traits.hh b/arch/alpha/isa_traits.hh index c73e79024..b22b2fa29 100644 --- a/arch/alpha/isa_traits.hh +++ b/arch/alpha/isa_traits.hh @@ -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; -- cgit v1.2.3