diff options
author | Daniel R. Carvalho <odanrc@yahoo.com.br> | 2018-06-06 15:26:10 +0200 |
---|---|---|
committer | Daniel Carvalho <odanrc@yahoo.com.br> | 2018-06-13 07:58:00 +0000 |
commit | 285a919dc1067c32e5eac22aaa805f62beaac6c4 (patch) | |
tree | 91af45be9b8b803a74743b386a1e38be7cc81b00 /src/mem/cache/tags/sector_tags.cc | |
parent | 5bb8643808e81412ef634c142a9a403032d9141f (diff) | |
download | gem5-285a919dc1067c32e5eac22aaa805f62beaac6c4.tar.xz |
mem-cache: Make packet const in insertBlock
The packet should not be modified within insertBlock.
Change-Id: If7d2b01fe131f9923194efd155c9e85eeab24d5a
Reviewed-on: https://gem5-review.googlesource.com/10811
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/mem/cache/tags/sector_tags.cc')
-rw-r--r-- | src/mem/cache/tags/sector_tags.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/cache/tags/sector_tags.cc b/src/mem/cache/tags/sector_tags.cc index 27e89829d..cec7bd413 100644 --- a/src/mem/cache/tags/sector_tags.cc +++ b/src/mem/cache/tags/sector_tags.cc @@ -194,7 +194,7 @@ SectorTags::getPossibleLocations(Addr addr) const } void -SectorTags::insertBlock(PacketPtr pkt, CacheBlk *blk) +SectorTags::insertBlock(const PacketPtr pkt, CacheBlk *blk) { // Insert block BaseTags::insertBlock(pkt, blk); |