fa_lru.cc (13218:5e7df60c6cab) | fa_lru.cc (13222:0dbcc7d7d66f) |
---|---|
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 --- 43 unchanged lines hidden (view full) --- 52 53#include <cassert> 54#include <sstream> 55 56#include "base/intmath.hh" 57#include "base/logging.hh" 58#include "mem/cache/base.hh" 59 | 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 --- 43 unchanged lines hidden (view full) --- 52 53#include <cassert> 54#include <sstream> 55 56#include "base/intmath.hh" 57#include "base/logging.hh" 58#include "mem/cache/base.hh" 59 |
60std::string 61FALRUBlk::print() const 62{ 63 return csprintf("%s inCachesMask: %#x", CacheBlk::print(), inCachesMask); 64} 65 |
|
60FALRU::FALRU(const Params *p) 61 : BaseTags(p), 62 63 cacheTracking(p->min_tracked_cache_size, size, blkSize) 64{ 65 if (!isPowerOf2(blkSize)) 66 fatal("cache block size (in bytes) `%d' must be a power of two", 67 blkSize); --- 395 unchanged lines hidden --- | 66FALRU::FALRU(const Params *p) 67 : BaseTags(p), 68 69 cacheTracking(p->min_tracked_cache_size, size, blkSize) 70{ 71 if (!isPowerOf2(blkSize)) 72 fatal("cache block size (in bytes) `%d' must be a power of two", 73 blkSize); --- 395 unchanged lines hidden --- |