fa_lru.cc (12775:84d56bc8cd8b) | fa_lru.cc (13164:da6240a1ccfb) |
---|---|
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 --- 269 unchanged lines hidden (view full) --- 278 279FALRU * 280FALRUParams::create() 281{ 282 return new FALRU(this); 283} 284 285void | 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 --- 269 unchanged lines hidden (view full) --- 278 279FALRU * 280FALRUParams::create() 281{ 282 return new FALRU(this); 283} 284 285void |
286FALRU::CacheTracking::check(FALRUBlk *head, FALRUBlk *tail) | 286FALRU::CacheTracking::check(const FALRUBlk *head, const FALRUBlk *tail) const |
287{ 288#ifdef FALRU_DEBUG | 287{ 288#ifdef FALRU_DEBUG |
289 FALRUBlk* blk = head; | 289 const FALRUBlk* blk = head; |
290 unsigned curr_size = 0; 291 unsigned tracked_cache_size = minTrackedSize; 292 CachesMask in_caches_mask = inAllCachesMask; 293 int j = 0; 294 295 while (blk) { 296 panic_if(blk->inCachesMask != in_caches_mask, "Expected cache mask " 297 "%x found %x", blk->inCachesMask, in_caches_mask); --- 153 unchanged lines hidden --- | 290 unsigned curr_size = 0; 291 unsigned tracked_cache_size = minTrackedSize; 292 CachesMask in_caches_mask = inAllCachesMask; 293 int j = 0; 294 295 while (blk) { 296 panic_if(blk->inCachesMask != in_caches_mask, "Expected cache mask " 297 "%x found %x", blk->inCachesMask, in_caches_mask); --- 153 unchanged lines hidden --- |