isa_traits.hh (7846:ff8e3075d762) isa_traits.hh (8065:5143254707ed)
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

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

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
97 const Addr PAddrImplMask = (ULL(1) << PABits) - 1;
98
99 // return a no-op instruction... used for instruction fetch faults
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

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

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
97 const Addr PAddrImplMask = (ULL(1) << PABits) - 1;
98
99 // return a no-op instruction... used for instruction fetch faults
100 const ExtMachInst NoopMachInst = 0xE320F000;
100 const ExtMachInst NoopMachInst = 0x01E320F000ULL;
101
102 const int LogVMPageSize = 12; // 4K bytes
103 const int VMPageSize = (1 << LogVMPageSize);
104
105 // Shouldn't this be 1 because of Thumb?! Dynamic? --Ali
106 const int BranchPredAddrShiftAmt = 2; // instructions are 4-byte aligned
107
108 const int MachineBytes = 4;

--- 22 unchanged lines hidden ---
101
102 const int LogVMPageSize = 12; // 4K bytes
103 const int VMPageSize = (1 << LogVMPageSize);
104
105 // Shouldn't this be 1 because of Thumb?! Dynamic? --Ali
106 const int BranchPredAddrShiftAmt = 2; // instructions are 4-byte aligned
107
108 const int MachineBytes = 4;

--- 22 unchanged lines hidden ---