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 <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.
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,
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 ---