sector_tags.cc (13938:14f80b6b37c1) sector_tags.cc (13941:2c19da00ef9c)
1/*
2 * Copyright (c) 2018 Inria
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

216 }
217 }
218
219 // Did not find block
220 return nullptr;
221}
222
223CacheBlk*
1/*
2 * Copyright (c) 2018 Inria
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

216 }
217 }
218
219 // Did not find block
220 return nullptr;
221}
222
223CacheBlk*
224SectorTags::findVictim(Addr addr, const bool is_secure,
224SectorTags::findVictim(Addr addr, const bool is_secure, const std::size_t size,
225 std::vector<CacheBlk*>& evict_blks) const
226{
227 // Get possible entries to be victimized
228 const std::vector<ReplaceableEntry*> sector_entries =
229 indexingPolicy->getPossibleEntries(addr);
230
231 // Check if the sector this address belongs to has been allocated
232 Addr tag = extractTag(addr);

--- 79 unchanged lines hidden ---
225 std::vector<CacheBlk*>& evict_blks) const
226{
227 // Get possible entries to be victimized
228 const std::vector<ReplaceableEntry*> sector_entries =
229 indexingPolicy->getPossibleEntries(addr);
230
231 // Check if the sector this address belongs to has been allocated
232 Addr tag = extractTag(addr);

--- 79 unchanged lines hidden ---