isa_traits.hh (7400:f6c9b27c4dbe) isa_traits.hh (7580:6f77f379a594)
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 77 unchanged lines hidden (view full) ---

86 const Addr USegBase = ULL(0x0);
87 const Addr USegEnd = ULL(0x7FFFFFFF);
88
89 // Kernel Segment 0 - Unmapped
90 const Addr KSeg0End = ULL(0x9FFFFFFF);
91 const Addr KSeg0Base = ULL(0x80000000);
92 const Addr KSeg0Mask = ULL(0x1FFFFFFF);
93
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 77 unchanged lines hidden (view full) ---

86 const Addr USegBase = ULL(0x0);
87 const Addr USegEnd = ULL(0x7FFFFFFF);
88
89 // Kernel Segment 0 - Unmapped
90 const Addr KSeg0End = ULL(0x9FFFFFFF);
91 const Addr KSeg0Base = ULL(0x80000000);
92 const Addr KSeg0Mask = ULL(0x1FFFFFFF);
93
94 // For loading... XXX This maybe could be USegEnd?? --ali
95 const Addr LoadAddrMask = ULL(0xffffffffff);
96
97 const unsigned VABits = 32;
98 const unsigned PABits = 32; // Is this correct?
99 const Addr VAddrImplMask = (ULL(1) << VABits) - 1;
100 const Addr VAddrUnImplMask = ~VAddrImplMask;
101 inline Addr VAddrImpl(Addr a) { return a & VAddrImplMask; }
102 inline Addr VAddrVPN(Addr a) { return a >> ArmISA::PageShift; }
103 inline Addr VAddrOffset(Addr a) { return a & ArmISA::PageOffset; }
104

--- 41 unchanged lines hidden ---
94 const unsigned VABits = 32;
95 const unsigned PABits = 32; // Is this correct?
96 const Addr VAddrImplMask = (ULL(1) << VABits) - 1;
97 const Addr VAddrUnImplMask = ~VAddrImplMask;
98 inline Addr VAddrImpl(Addr a) { return a & VAddrImplMask; }
99 inline Addr VAddrVPN(Addr a) { return a >> ArmISA::PageShift; }
100 inline Addr VAddrOffset(Addr a) { return a & ArmISA::PageOffset; }
101

--- 41 unchanged lines hidden ---