base.cc (12704:4d2bcc64d469) base.cc (12722:d84f756891fe)
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{
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 assert(!blk->isValid());
79
78 // Get address
79 Addr addr = pkt->getAddr();
80
80 // Get address
81 Addr addr = pkt->getAddr();
82
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 ---
83 // Previous block, if existed, has been removed, and now we have
84 // to insert the new one
85
86 // Deal with what we are bringing in
87 MasterID master_id = pkt->req->masterId();
88 assert(master_id < cache->system->maxMasters());
89 occupancies[master_id]++;
90

--- 105 unchanged lines hidden ---