390,391c390,393
< std::list<unsigned>::iterator threads = (*activeThreads).begin();
< while (threads != (*activeThreads).end()) {
---
> std::list<unsigned>::iterator threads = activeThreads->begin();
> std::list<unsigned>::iterator end = activeThreads->end();
>
> while (threads != end) {
392a395
>
419c422,423
< std::list<unsigned>::iterator threads = (*activeThreads).begin();
---
> std::list<unsigned>::iterator threads = activeThreads->begin();
> std::list<unsigned>::iterator end = activeThreads->end();
421c425
< while (threads != (*activeThreads).end()) {
---
> while (threads != end) {
442c446,447
< std::list<unsigned>::iterator threads = (*activeThreads).begin();
---
> std::list<unsigned>::iterator threads = activeThreads->begin();
> std::list<unsigned>::iterator end = activeThreads->end();
444c449
< while (threads != (*activeThreads).end()) {
---
> while (threads != end) {
567c572
< if ((*activeThreads).size() <= 0)
---
> if (activeThreads->empty())
570c575,576
< std::list<unsigned>::iterator threads = (*activeThreads).begin();
---
> std::list<unsigned>::iterator threads = activeThreads->begin();
> std::list<unsigned>::iterator end = activeThreads->end();
574c580
< while (threads != (*activeThreads).end()) {
---
> while (threads != end) {
595c601
< threads = (*activeThreads).begin();
---
> threads = activeThreads->begin();
597c603
< while (threads != (*activeThreads).end()) {
---
> while (threads != end) {
695c701,702
< std::list<unsigned>::iterator threads = (*activeThreads).begin();
---
> std::list<unsigned>::iterator threads = activeThreads->begin();
> std::list<unsigned>::iterator end = activeThreads->end();
697c704
< while (threads != (*activeThreads).end()) {
---
> while (threads != end) {
805c812
< threads = (*activeThreads).begin();
---
> threads = activeThreads->begin();
807c814
< while (threads != (*activeThreads).end()) {
---
> while (threads != end) {
974d980
< #if !FULL_SYSTEM
979,980d984
< if (inst_num > 0 || iewStage->hasStoresToWB())
< #else
984d987
< #endif
987a991,993
> } else if (inst_num > 0 || iewStage->hasStoresToWB()) {
> DPRINTF(Commit, "Waiting to become head of commit.\n");
> return false;
1257c1263,1264
< std::list<unsigned>::iterator threads = (*activeThreads).begin();
---
> std::list<unsigned>::iterator threads = activeThreads->begin();
> std::list<unsigned>::iterator end = activeThreads->end();
1259c1266
< while (threads != (*activeThreads).end()) {
---
> while (threads != end) {
1338c1345,1346
< int tid = (*activeThreads).front();
---
> assert(!activeThreads->empty());
> int tid = activeThreads->front();
1385c1393,1394
< std::list<unsigned>::iterator threads = (*activeThreads).begin();
---
> std::list<unsigned>::iterator threads = activeThreads->begin();
> std::list<unsigned>::iterator end = activeThreads->end();
1387c1396
< while (threads != (*activeThreads).end()) {
---
> while (threads != end) {