Deleted Added
sdiff udiff text old ( 13938:14f80b6b37c1 ) new ( 13941:2c19da00ef9c )
full compact
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>
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.
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,
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 ---