trace_cpu.cc (11253:daf9f91b11e9) trace_cpu.cc (11294:a368064a2ab5)
1/*
2 * Copyright (c) 2013 - 2015 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

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

1332
1333bool
1334TraceCPU::ElasticDataGen::GraphNode::removeRegDep(NodeSeqNum reg_dep)
1335{
1336 for (auto& own_reg_dep : regDep) {
1337 if (own_reg_dep == reg_dep) {
1338 // If register dependency is found, make it zero and return true
1339 own_reg_dep = 0;
1/*
2 * Copyright (c) 2013 - 2015 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

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

1332
1333bool
1334TraceCPU::ElasticDataGen::GraphNode::removeRegDep(NodeSeqNum reg_dep)
1335{
1336 for (auto& own_reg_dep : regDep) {
1337 if (own_reg_dep == reg_dep) {
1338 // If register dependency is found, make it zero and return true
1339 own_reg_dep = 0;
1340 assert(numRegDep > 0);
1340 --numRegDep;
1341 --numRegDep;
1341 assert(numRegDep >= 0);
1342 DPRINTFR(TraceCPUData, "\tFor %lli: Marking register dependency %lli "
1343 "done.\n", seqNum, reg_dep);
1344 return true;
1345 }
1346 }
1347
1348 // Return false if the dependency is not found
1349 return false;
1350}
1351
1352bool
1353TraceCPU::ElasticDataGen::GraphNode::removeRobDep(NodeSeqNum rob_dep)
1354{
1355 for (auto& own_rob_dep : robDep) {
1356 if (own_rob_dep == rob_dep) {
1357 // If the rob dependency is found, make it zero and return true
1358 own_rob_dep = 0;
1342 DPRINTFR(TraceCPUData, "\tFor %lli: Marking register dependency %lli "
1343 "done.\n", seqNum, reg_dep);
1344 return true;
1345 }
1346 }
1347
1348 // Return false if the dependency is not found
1349 return false;
1350}
1351
1352bool
1353TraceCPU::ElasticDataGen::GraphNode::removeRobDep(NodeSeqNum rob_dep)
1354{
1355 for (auto& own_rob_dep : robDep) {
1356 if (own_rob_dep == rob_dep) {
1357 // If the rob dependency is found, make it zero and return true
1358 own_rob_dep = 0;
1359 assert(numRobDep > 0);
1359 --numRobDep;
1360 --numRobDep;
1360 assert(numRobDep >= 0);
1361 DPRINTFR(TraceCPUData, "\tFor %lli: Marking ROB dependency %lli "
1362 "done.\n", seqNum, rob_dep);
1363 return true;
1364 }
1365 }
1366 return false;
1367}
1368

--- 108 unchanged lines hidden ---
1361 DPRINTFR(TraceCPUData, "\tFor %lli: Marking ROB dependency %lli "
1362 "done.\n", seqNum, rob_dep);
1363 return true;
1364 }
1365 }
1366 return false;
1367}
1368

--- 108 unchanged lines hidden ---