sector_tags.hh (12773:387fa9e5c9ff) | sector_tags.hh (13215:82cdb8db4643) |
---|---|
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/sector_blk.hh" 43#include "mem/cache/tags/base.hh" | 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/sector_blk.hh" 43#include "mem/cache/tags/base.hh" |
44#include "mem/packet.hh" | |
45#include "params/SectorTags.hh" 46 47class BaseReplacementPolicy; 48class ReplaceableEntry; 49 50/** 51 * A SectorTags cache tag store. 52 * @sa \ref gem5MemorySystem "gem5 Memory System" --- 92 unchanged lines hidden (view full) --- 145 * @return The possible locations. 146 */ 147 virtual const std::vector<SectorBlk*> getPossibleLocations(Addr addr) 148 const; 149 150 /** 151 * Insert the new block into the cache and update replacement data. 152 * | 44#include "params/SectorTags.hh" 45 46class BaseReplacementPolicy; 47class ReplaceableEntry; 48 49/** 50 * A SectorTags cache tag store. 51 * @sa \ref gem5MemorySystem "gem5 Memory System" --- 92 unchanged lines hidden (view full) --- 144 * @return The possible locations. 145 */ 146 virtual const std::vector<SectorBlk*> getPossibleLocations(Addr addr) 147 const; 148 149 /** 150 * Insert the new block into the cache and update replacement data. 151 * |
153 * @param pkt Packet holding the address to update | 152 * @param addr Address of the block. 153 * @param is_secure Whether the block is in secure space or not. 154 * @param src_master_ID The source requestor ID. 155 * @param task_ID The new task ID. |
154 * @param blk The block to update. 155 */ | 156 * @param blk The block to update. 157 */ |
156 void insertBlock(const PacketPtr pkt, CacheBlk *blk) override; | 158 void insertBlock(const Addr addr, const bool is_secure, 159 const int src_master_ID, const uint32_t task_ID, 160 CacheBlk *blk) override; |
157 158 /** 159 * Finds the given address in the cache, do not update replacement data. 160 * i.e. This is a no-side-effect find of a block. 161 * 162 * @param addr The address to find. 163 * @param is_secure True if the target memory space is secure. 164 * @return Pointer to the cache block if found. --- 78 unchanged lines hidden --- | 161 162 /** 163 * Finds the given address in the cache, do not update replacement data. 164 * i.e. This is a no-side-effect find of a block. 165 * 166 * @param addr The address to find. 167 * @param is_secure True if the target memory space is secure. 168 * @return Pointer to the cache block if found. --- 78 unchanged lines hidden --- |