fa_lru.cc (13225:8d1621fc586e) fa_lru.cc (13353:63f4073c1fc7)
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
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 = tagHash.erase(std::make_pair(blk->tag, blk->isSecure()));
127 auto num_erased M5_VAR_USED =
128 tagHash.erase(std::make_pair(blk->tag, blk->isSecure()));
128
129 // Sanity check; only one block reference should be erased
130 assert(num_erased == 1);
131
132 // Invalidate block entry. Must be done after the hash is erased
133 BaseTags::invalidate(blk);
134
135 // Decrease the number of tags in use

--- 334 unchanged lines hidden ---
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 ---