sector_tags.cc (12752:6a0e3eb1cc5d) sector_tags.cc (12753:fe5b2dbe42bb)
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;

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

189
190const std::vector<SectorBlk*>
191SectorTags::getPossibleLocations(Addr addr) const
192{
193 return sets[extractSet(addr)];
194}
195
196void
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;

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

189
190const std::vector<SectorBlk*>
191SectorTags::getPossibleLocations(Addr addr) const
192{
193 return sets[extractSet(addr)];
194}
195
196void
197SectorTags::insertBlock(PacketPtr pkt, CacheBlk *blk)
197SectorTags::insertBlock(const PacketPtr pkt, CacheBlk *blk)
198{
199 // Insert block
200 BaseTags::insertBlock(pkt, blk);
201
202 // Get block's sector
203 SectorSubBlk* sub_blk = static_cast<SectorSubBlk*>(blk);
204 const SectorBlk* sector_blk = sub_blk->getSectorBlock();
205

--- 149 unchanged lines hidden ---
198{
199 // Insert block
200 BaseTags::insertBlock(pkt, blk);
201
202 // Get block's sector
203 SectorSubBlk* sub_blk = static_cast<SectorSubBlk*>(blk);
204 const SectorBlk* sector_blk = sub_blk->getSectorBlock();
205

--- 149 unchanged lines hidden ---