Deleted Added
sdiff udiff text old ( 13419:aaadcfae091a ) new ( 13752:135bb759ee9c )
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;

--- 27 unchanged lines hidden (view full) ---

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 "params/SectorTags.hh"
45
46class BaseCache;
47class BaseReplacementPolicy;
48class ReplaceableEntry;
49
50/**
51 * A SectorTags cache tag store.
52 * @sa \ref gem5MemorySystem "gem5 Memory System"
53 *
54 * The SectorTags placement policy divides the cache into s sectors of w

--- 69 unchanged lines hidden (view full) ---

124 * @param lat The latency of the tag lookup.
125 * @return Pointer to the cache block if found.
126 */
127 CacheBlk* accessBlock(Addr addr, bool is_secure, Cycles &lat) override;
128
129 /**
130 * Insert the new block into the cache and update replacement data.
131 *
132 * @param addr Address of the block.
133 * @param is_secure Whether the block is in secure space or not.
134 * @param src_master_ID The source requestor ID.
135 * @param task_ID The new task ID.
136 * @param blk The block to update.
137 */
138 void insertBlock(const Addr addr, const bool is_secure,
139 const int src_master_ID, const uint32_t task_ID,
140 CacheBlk *blk) override;
141
142 /**
143 * Finds the given address in the cache, do not update replacement data.
144 * i.e. This is a no-side-effect find of a block.
145 *
146 * @param addr The address to find.
147 * @param is_secure True if the target memory space is secure.
148 * @return Pointer to the cache block if found.

--- 53 unchanged lines hidden ---