Deleted Added
sdiff udiff text old ( 12704:4d2bcc64d469 ) new ( 12722:d84f756891fe )
full compact
1/*
2 * Copyright (c) 2013,2016 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

70{
71 assert(!cache);
72 cache = _cache;
73}
74
75void
76BaseTags::insertBlock(PacketPtr pkt, CacheBlk *blk)
77{
78 // Get address
79 Addr addr = pkt->getAddr();
80
81 if (blk->isValid()) {
82 invalidate(blk);
83 }
84
85 // Previous block, if existed, has been removed, and now we have
86 // to insert the new one
87
88 // Deal with what we are bringing in
89 MasterID master_id = pkt->req->masterId();
90 assert(master_id < cache->system->maxMasters());
91 occupancies[master_id]++;
92

--- 105 unchanged lines hidden ---