fu_pool.cc (9550:e0e2c8f83d08) | fu_pool.cc (9783:8d327ffdba62) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2012 ARM Limited | 2 * Copyright (c) 2012-2013 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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 239 unchanged lines hidden (view full) --- 250 cout << " [" << i << "] : "; 251 252 cout << funcUnits[i]->name << " "; 253 254 cout << "\n"; 255 } 256} 257 | 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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 239 unchanged lines hidden (view full) --- 250 cout << " [" << i << "] : "; 251 252 cout << funcUnits[i]->name << " "; 253 254 cout << "\n"; 255 } 256} 257 |
258void 259FUPool::drainSanityCheck() const | 258bool 259FUPool::isDrained() const |
260{ | 260{ |
261 assert(unitsToBeFreed.empty()); | 261 bool is_drained = true; |
262 for (int i = 0; i < numFU; i++) | 262 for (int i = 0; i < numFU; i++) |
263 assert(!unitBusy[i]); | 263 is_drained = is_drained && !unitBusy[i]; 264 265 return is_drained; |
264} 265 266// 267 268//////////////////////////////////////////////////////////////////////////// 269// 270// The SimObjects we use to get the FU information into the simulator 271// --- 14 unchanged lines hidden --- | 266} 267 268// 269 270//////////////////////////////////////////////////////////////////////////// 271// 272// The SimObjects we use to get the FU information into the simulator 273// --- 14 unchanged lines hidden --- |