fa_lru.cc (12743:b5ccee582b40) fa_lru.cc (12744:d1ff0b42b747)
1/*
2 * Copyright (c) 2013,2016-2018 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

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

188ReplaceableEntry*
189FALRU::findBlockBySetAndWay(int set, int way) const
190{
191 assert(set == 0);
192 return &blks[way];
193}
194
195CacheBlk*
1/*
2 * Copyright (c) 2013,2016-2018 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

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

188ReplaceableEntry*
189FALRU::findBlockBySetAndWay(int set, int way) const
190{
191 assert(set == 0);
192 return &blks[way];
193}
194
195CacheBlk*
196FALRU::findVictim(Addr addr)
196FALRU::findVictim(Addr addr, std::vector<CacheBlk*>& evict_blks) const
197{
197{
198 return tail;
198 // The victim is always stored on the tail for the FALRU
199 FALRUBlk* victim = tail;
200
201 // There is only one eviction for this replacement
202 evict_blks.push_back(victim);
203
204 return victim;
199}
200
201void
202FALRU::insertBlock(PacketPtr pkt, CacheBlk *blk)
203{
204 FALRUBlk* falruBlk = static_cast<FALRUBlk*>(blk);
205
206 // Make sure block is not present in the cache

--- 238 unchanged lines hidden ---
205}
206
207void
208FALRU::insertBlock(PacketPtr pkt, CacheBlk *blk)
209{
210 FALRUBlk* falruBlk = static_cast<FALRUBlk*>(blk);
211
212 // Make sure block is not present in the cache

--- 238 unchanged lines hidden ---