Deleted Added
sdiff udiff text old ( 12334:e0ab29a34764 ) new ( 12977:cdc78a6e54d7 )
full compact
1/*
2 * Copyright (c) 2012, 2014, 2017 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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

40 * Authors: Nathan Binkert
41 * Steve Reinhardt
42 * Andreas Hansson
43 */
44
45#ifndef __BASE_ADDR_RANGE_HH__
46#define __BASE_ADDR_RANGE_HH__
47
48#include <list>
49#include <vector>
50
51#include "base/bitfield.hh"
52#include "base/cprintf.hh"
53#include "base/logging.hh"
54#include "base/types.hh"
55

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

190
191 /**
192 * Determing the interleaving granularity of the range.
193 *
194 * @return The size of the regions created by the interleaving bits
195 */
196 uint64_t granularity() const
197 {
198 return ULL(1) << (intlvHighBit - intlvBits + 1);
199 }
200
201 /**
202 * Determine the number of interleaved address stripes this range
203 * is part of.
204 *
205 * @return The number of stripes spanned by the interleaving bits
206 */

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

311 *
312 * @param r Range to compare with
313 * @return true if the this range is a subset of the other one
314 */
315 bool isSubset(const AddrRange& r) const
316 {
317 if (interleaved())
318 panic("Cannot test subset of interleaved range %s\n", to_string());
319 return _start >= r._start && _end <= r._end;
320 }
321
322 /**
323 * Determine if the range contains an address.
324 *
325 * @param a Address to compare with
326 * @return true if the address is in the range
327 */

--- 123 unchanged lines hidden ---