cpu.cc (7897:d9e8b1fd1a9f) cpu.cc (8138:f08692f2932e)
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * Copyright (c) 2011 Regents of the University of California
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

803 for (int freg = TheISA::NumIntRegs; freg < TheISA::NumFloatRegs; freg++) {
804 PhysRegIndex phys_reg = renameMap[tid].lookup(freg);
805
806 scoreboard.unsetReg(phys_reg);
807 freeList.addReg(phys_reg);
808 }
809
810 // Squash Throughout Pipeline
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * Copyright (c) 2011 Regents of the University of California
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

803 for (int freg = TheISA::NumIntRegs; freg < TheISA::NumFloatRegs; freg++) {
804 PhysRegIndex phys_reg = renameMap[tid].lookup(freg);
805
806 scoreboard.unsetReg(phys_reg);
807 freeList.addReg(phys_reg);
808 }
809
810 // Squash Throughout Pipeline
811 InstSeqNum squash_seq_num = commit.rob->readHeadInst(tid)->seqNum;
812 fetch.squash(0, squash_seq_num, tid);
811 DynInstPtr inst = commit.rob->readHeadInst(tid);
812 InstSeqNum squash_seq_num = inst->seqNum;
813 fetch.squash(0, squash_seq_num, inst, tid);
813 decode.squash(tid);
814 rename.squash(squash_seq_num, tid);
815 iew.squash(tid);
816 iew.ldstQueue.squash(squash_seq_num, tid);
817 commit.rob->squash(squash_seq_num, tid);
818
819
820 assert(iew.instQueue.getCount(tid) == 0);

--- 855 unchanged lines hidden ---
814 decode.squash(tid);
815 rename.squash(squash_seq_num, tid);
816 iew.squash(tid);
817 iew.ldstQueue.squash(squash_seq_num, tid);
818 commit.rob->squash(squash_seq_num, tid);
819
820
821 assert(iew.instQueue.getCount(tid) == 0);

--- 855 unchanged lines hidden ---