1/* 2 * Copyright (c) 2018 Inria 3 * Copyright (c) 2013,2016-2018 ARM Limited 4 * All rights reserved. 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 110 unchanged lines hidden (view full) --- 119 BaseTags::regStats(); 120 cacheTracking.regStats(name()); 121} 122 123void 124FALRU::invalidate(CacheBlk *blk) 125{ 126 // Erase block entry reference in the hash table |
127 auto num_erased M5_VAR_USED = 128 tagHash.erase(std::make_pair(blk->tag, blk->isSecure())); |
129 130 // Sanity check; only one block reference should be erased 131 assert(num_erased == 1); 132 133 // Invalidate block entry. Must be done after the hash is erased 134 BaseTags::invalidate(blk); 135 136 // Decrease the number of tags in use --- 334 unchanged lines hidden --- |