2c2
< * Copyright (c) 2013-2016 ARM Limited
---
> * Copyright (c) 2013-2016,2019 ARM Limited
47a48
> #include <bitset>
88a90,93
>
> // Change for systems with more than 256 ports tracked by this object
> static const int SNOOP_MASK_SIZE = 256;
>
117c122
< fatal_if(id > 8 * sizeof(SnoopMask),
---
> fatal_if(id > SNOOP_MASK_SIZE,
119c124
< 8 * sizeof(SnoopMask), id);
---
> SNOOP_MASK_SIZE, id);
201,205c206
< * limits the number of snooping ports supported per crossbar. For
< * the moment it is an uint64_t to offer maximum
< * scalability. However, it is possible to use e.g. a uint16_t or
< * uint32_to slim down the footprint of the hash map (and
< * ultimately improve the simulation performance).
---
> * limits the number of snooping ports supported per crossbar.
207c208
< typedef uint64_t SnoopMask;
---
> typedef std::bitset<SNOOP_MASK_SIZE> SnoopMask;
317c318
< if (port_mask & portToMask(*p))
---
> if ((port_mask & portToMask(*p)).any())