addr_range.hh (9541:e476d01bc6a4) addr_range.hh (9581:e507dc092ca3)
1/*
2 * Copyright (c) 2012 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

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

135 */
136 bool interleaved() const { return intlvBits != 0; }
137
138 /**
139 * Determing the interleaving granularity of the range.
140 *
141 * @return The size of the regions created by the interleaving bits
142 */
1/*
2 * Copyright (c) 2012 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

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

135 */
136 bool interleaved() const { return intlvBits != 0; }
137
138 /**
139 * Determing the interleaving granularity of the range.
140 *
141 * @return The size of the regions created by the interleaving bits
142 */
143 uint64_t granularity() const { return ULL(1) << intlvHighBit; }
143 uint64_t granularity() const
144 {
145 return ULL(1) << (intlvHighBit - intlvBits);
146 }
144
145 /**
146 * Determine the number of interleaved address stripes this range
147 * is part of.
148 *
149 * @return The number of stripes spanned by the interleaving bits
150 */
151 uint32_t stripes() const { return ULL(1) << intlvBits; }

--- 153 unchanged lines hidden ---
147
148 /**
149 * Determine the number of interleaved address stripes this range
150 * is part of.
151 *
152 * @return The number of stripes spanned by the interleaving bits
153 */
154 uint32_t stripes() const { return ULL(1) << intlvBits; }

--- 153 unchanged lines hidden ---