inst_queue_impl.hh (2674:6d4afef73a20) inst_queue_impl.hh (2698:d5f35d41e017)
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

1235 }
1236 }
1237}
1238
1239template <class Impl>
1240int
1241InstructionQueue<Impl>::countInsts()
1242{
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

1235 }
1236 }
1237}
1238
1239template <class Impl>
1240int
1241InstructionQueue<Impl>::countInsts()
1242{
1243#if 0
1243 //ksewell:This works but definitely could use a cleaner write
1244 //with a more intuitive way of counting. Right now it's
1245 //just brute force ....
1244 //ksewell:This works but definitely could use a cleaner write
1245 //with a more intuitive way of counting. Right now it's
1246 //just brute force ....
1246
1247#if 0
1247 // Change the #if if you want to use this method.
1248 int total_insts = 0;
1249
1250 for (int i = 0; i < numThreads; ++i) {
1251 ListIt count_it = instList[i].begin();
1252
1253 while (count_it != instList[i].end()) {
1254 if (!(*count_it)->isSquashed() && !(*count_it)->isSquashedInIQ()) {
1255 if (!(*count_it)->isIssued()) {

--- 148 unchanged lines hidden ---
1248 int total_insts = 0;
1249
1250 for (int i = 0; i < numThreads; ++i) {
1251 ListIt count_it = instList[i].begin();
1252
1253 while (count_it != instList[i].end()) {
1254 if (!(*count_it)->isSquashed() && !(*count_it)->isSquashedInIQ()) {
1255 if (!(*count_it)->isIssued()) {

--- 148 unchanged lines hidden ---