53c53
< public:
---
> private:
55,56c55
< * Replacement data associated to this entry.
< * It is instantiated by the replacement policy.
---
> * Set to which this entry belongs.
58c57,94
< std::shared_ptr<ReplacementData> replacementData;
---
> uint32_t _set;
>
> /**
> * Way (relative position within the set) to which this entry belongs.
> */
> uint32_t _way;
>
> public:
> /**
> * Replacement data associated to this entry.
> * It is instantiated by the replacement policy.
> */
> std::shared_ptr<ReplacementData> replacementData;
>
> /**
> * Set both the set and way. Should be called only once.
> *
> * @param set The set of this entry.
> * @param way The way of this entry.
> */
> void setPosition(const uint32_t set, const uint32_t way) {
> _set = set;
> _way = way;
> }
>
> /**
> * Get set number.
> *
> * @return The set to which this entry belongs.
> */
> uint32_t getSet() const { return _set; }
>
> /**
> * Get way number.
> *
> * @return The way to which this entry belongs.
> */
> uint32_t getWay() const { return _way; }