isa_traits.hh (7580:6f77f379a594) | isa_traits.hh (7651:84a44eb3ccb8) |
---|---|
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 --- 72 unchanged lines hidden (view full) --- 81 82 //// All 'Mapped' segments go through the TLB 83 //// All other segments are translated by dropping the MSB, to give 84 //// the corresponding physical address 85 // User Segment - Mapped 86 const Addr USegBase = ULL(0x0); 87 const Addr USegEnd = ULL(0x7FFFFFFF); 88 | 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 --- 72 unchanged lines hidden (view full) --- 81 82 //// All 'Mapped' segments go through the TLB 83 //// All other segments are translated by dropping the MSB, to give 84 //// the corresponding physical address 85 // User Segment - Mapped 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 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 --- | 89 const unsigned VABits = 32; 90 const unsigned PABits = 32; // Is this correct? 91 const Addr VAddrImplMask = (ULL(1) << VABits) - 1; 92 const Addr VAddrUnImplMask = ~VAddrImplMask; 93 inline Addr VAddrImpl(Addr a) { return a & VAddrImplMask; } 94 inline Addr VAddrVPN(Addr a) { return a >> ArmISA::PageShift; } 95 inline Addr VAddrOffset(Addr a) { return a & ArmISA::PageOffset; } 96 --- 41 unchanged lines hidden --- |