base.cc (12684:44ebd2bc020f) | base.cc (12691:8e1371fde4be) |
---|---|
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 --- 86 unchanged lines hidden (view full) --- 95 replacements[0]++; 96 totalRefs += blk->refCount; 97 ++sampledRefs; 98 99 invalidate(blk); 100 blk->invalidate(); 101 } 102 | 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 --- 86 unchanged lines hidden (view full) --- 95 replacements[0]++; 96 totalRefs += blk->refCount; 97 ++sampledRefs; 98 99 invalidate(blk); 100 blk->invalidate(); 101 } 102 |
103 // Touch block 104 blk->isTouched = true; 105 blk->refCount = 1; 106 blk->tickInserted = curTick(); 107 | |
108 // Previous block, if existed, has been removed, and now we have 109 // to insert the new one 110 tagsInUse++; 111 | 103 // Previous block, if existed, has been removed, and now we have 104 // to insert the new one 105 tagsInUse++; 106 |
112 // Set tag for new block. Caller is responsible for setting status. 113 blk->tag = extractTag(addr); 114 | |
115 // Deal with what we are bringing in 116 MasterID master_id = pkt->req->masterId(); 117 assert(master_id < cache->system->maxMasters()); 118 occupancies[master_id]++; | 107 // Deal with what we are bringing in 108 MasterID master_id = pkt->req->masterId(); 109 assert(master_id < cache->system->maxMasters()); 110 occupancies[master_id]++; |
119 blk->srcMasterId = master_id; | |
120 | 111 |
121 // Set task id 122 blk->task_id = pkt->req->taskId(); | 112 // Insert block with tag, src master id and task id 113 blk->insert(extractTag(addr), pkt->isSecure(), master_id, 114 pkt->req->taskId()); |
123 124 // We only need to write into one tag and one data block. 125 tagAccesses += 1; 126 dataAccesses += 1; 127} 128 129void 130BaseTags::regStats() --- 95 unchanged lines hidden --- | 115 116 // We only need to write into one tag and one data block. 117 tagAccesses += 1; 118 dataAccesses += 1; 119} 120 121void 122BaseTags::regStats() --- 95 unchanged lines hidden --- |