sector_tags.hh (13938:14f80b6b37c1) | sector_tags.hh (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; --- 22 unchanged lines hidden (view full) --- 31/** 32 * @file 33 * Declaration of a sector tag store. 34 */ 35 36#ifndef __MEM_CACHE_TAGS_SECTOR_TAGS_HH__ 37#define __MEM_CACHE_TAGS_SECTOR_TAGS_HH__ 38 | 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; --- 22 unchanged lines hidden (view full) --- 31/** 32 * @file 33 * Declaration of a sector tag store. 34 */ 35 36#ifndef __MEM_CACHE_TAGS_SECTOR_TAGS_HH__ 37#define __MEM_CACHE_TAGS_SECTOR_TAGS_HH__ 38 |
39#include <cstdint> |
|
39#include <string> 40#include <vector> 41 42#include "mem/cache/tags/base.hh" 43#include "mem/cache/tags/sector_blk.hh" 44#include "mem/packet.hh" 45#include "params/SectorTags.hh" 46 --- 98 unchanged lines hidden (view full) --- 145 */ 146 CacheBlk* findBlock(Addr addr, bool is_secure) const override; 147 148 /** 149 * Find replacement victim based on address. 150 * 151 * @param addr Address to find a victim for. 152 * @param is_secure True if the target memory space is secure. | 40#include <string> 41#include <vector> 42 43#include "mem/cache/tags/base.hh" 44#include "mem/cache/tags/sector_blk.hh" 45#include "mem/packet.hh" 46#include "params/SectorTags.hh" 47 --- 98 unchanged lines hidden (view full) --- 146 */ 147 CacheBlk* findBlock(Addr addr, bool is_secure) const override; 148 149 /** 150 * Find replacement victim based on address. 151 * 152 * @param addr Address to find a victim for. 153 * @param is_secure True if the target memory space is secure. |
154 * @param size Size, in bits, of new block to allocate. |
|
153 * @param evict_blks Cache blocks to be evicted. 154 * @return Cache block to be replaced. 155 */ 156 CacheBlk* findVictim(Addr addr, const bool is_secure, | 155 * @param evict_blks Cache blocks to be evicted. 156 * @return Cache block to be replaced. 157 */ 158 CacheBlk* findVictim(Addr addr, const bool is_secure, |
159 const std::size_t size, |
|
157 std::vector<CacheBlk*>& evict_blks) const override; 158 159 /** 160 * Calculate a block's offset in a sector from the address. 161 * 162 * @param addr The address to get the offset from. 163 * @return Offset of the corresponding block within its sector. 164 */ --- 33 unchanged lines hidden --- | 160 std::vector<CacheBlk*>& evict_blks) const override; 161 162 /** 163 * Calculate a block's offset in a sector from the address. 164 * 165 * @param addr The address to get the offset from. 166 * @return Offset of the corresponding block within its sector. 167 */ --- 33 unchanged lines hidden --- |