addr_range.hh (9581:e507dc092ca3) | addr_range.hh (9780:704c03c216f7) |
---|---|
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 --- 128 unchanged lines hidden (view full) --- 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 144 { | 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 --- 128 unchanged lines hidden (view full) --- 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 144 { |
145 return ULL(1) << (intlvHighBit - intlvBits); | 145 return ULL(1) << (intlvHighBit - intlvBits + 1); |
146 } 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 unchanged lines hidden --- | 146 } 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 unchanged lines hidden --- |