rename_impl.hh (2703:638e5b90f4c6) rename_impl.hh (2731:822b96578fba)
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;

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

336 // Set the status to Squashing.
337 renameStatus[tid] = Squashing;
338
339 // Squash any instructions from decode.
340 unsigned squashCount = 0;
341
342 for (int i=0; i<fromDecode->size; i++) {
343 if (fromDecode->insts[i]->threadNumber == tid) {
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;

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

336 // Set the status to Squashing.
337 renameStatus[tid] = Squashing;
338
339 // Squash any instructions from decode.
340 unsigned squashCount = 0;
341
342 for (int i=0; i<fromDecode->size; i++) {
343 if (fromDecode->insts[i]->threadNumber == tid) {
344 fromDecode->insts[i]->squashed = true;
344 fromDecode->insts[i]->setSquashed();
345 wroteToTimeBuffer = true;
346 squashCount++;
347 }
348 }
349
350 insts[tid].clear();
351
352 // Clear the skid buffer in case it has any data in it.

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

1017
1018template <class Impl>
1019unsigned
1020DefaultRename<Impl>::validInsts()
1021{
1022 unsigned inst_count = 0;
1023
1024 for (int i=0; i<fromDecode->size; i++) {
345 wroteToTimeBuffer = true;
346 squashCount++;
347 }
348 }
349
350 insts[tid].clear();
351
352 // Clear the skid buffer in case it has any data in it.

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

1017
1018template <class Impl>
1019unsigned
1020DefaultRename<Impl>::validInsts()
1021{
1022 unsigned inst_count = 0;
1023
1024 for (int i=0; i<fromDecode->size; i++) {
1025 if (!fromDecode->insts[i]->squashed)
1025 if (!fromDecode->insts[i]->isSquashed())
1026 inst_count++;
1027 }
1028
1029 return inst_count;
1030}
1031
1032template <class Impl>
1033void

--- 241 unchanged lines hidden ---
1026 inst_count++;
1027 }
1028
1029 return inst_count;
1030}
1031
1032template <class Impl>
1033void

--- 241 unchanged lines hidden ---