fa_lru.cc (12553:514f2e4fb751) fa_lru.cc (12566:d6d48df9bf0f)
1/*
1/*
2 * Copyright (c) 2013,2016 ARM Limited
2 * Copyright (c) 2013,2016-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

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

158 return (*iter).second;
159 }
160 return nullptr;
161}
162
163void
164FALRU::invalidate(CacheBlk *blk)
165{
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

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

158 return (*iter).second;
159 }
160 return nullptr;
161}
162
163void
164FALRU::invalidate(CacheBlk *blk)
165{
166 assert(blk);
167 tagsInUse--;
166 // TODO: We need to move the block to the tail to make it the next victim
167 BaseTags::invalidate(blk);
168}
169
170CacheBlk*
171FALRU::accessBlock(Addr addr, bool is_secure, Cycles &lat)
172{
173 return accessBlock(addr, is_secure, lat, 0);
174}
175

--- 158 unchanged lines hidden ---
168}
169
170CacheBlk*
171FALRU::accessBlock(Addr addr, bool is_secure, Cycles &lat)
172{
173 return accessBlock(addr, is_secure, lat, 0);
174}
175

--- 158 unchanged lines hidden ---