free_list.hh (2670:9107b8bd08cd) free_list.hh (4642:d7b2de2d72f1)
1/*
2 * Copyright (c) 2004-2005 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;

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

163{
164 DPRINTF(FreeList,"Freeing register %i.\n", freed_reg);
165 //Might want to add in a check for whether or not this register is
166 //already in there. A bit vector or something similar would be useful.
167 if (freed_reg < numPhysicalIntRegs) {
168 if (freed_reg != TheISA::ZeroReg)
169 freeIntRegs.push(freed_reg);
170 } else if (freed_reg < numPhysicalRegs) {
1/*
2 * Copyright (c) 2004-2005 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;

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

163{
164 DPRINTF(FreeList,"Freeing register %i.\n", freed_reg);
165 //Might want to add in a check for whether or not this register is
166 //already in there. A bit vector or something similar would be useful.
167 if (freed_reg < numPhysicalIntRegs) {
168 if (freed_reg != TheISA::ZeroReg)
169 freeIntRegs.push(freed_reg);
170 } else if (freed_reg < numPhysicalRegs) {
171#if THE_ISA == ALPHA_ISA
171 if (freed_reg != (TheISA::ZeroReg + numPhysicalIntRegs))
172 if (freed_reg != (TheISA::ZeroReg + numPhysicalIntRegs))
173#endif
172 freeFloatRegs.push(freed_reg);
173 }
174}
175
176inline void
177SimpleFreeList::addIntReg(PhysRegIndex freed_reg)
178{
179 DPRINTF(FreeList,"Freeing int register %i.\n", freed_reg);

--- 13 unchanged lines hidden ---
174 freeFloatRegs.push(freed_reg);
175 }
176}
177
178inline void
179SimpleFreeList::addIntReg(PhysRegIndex freed_reg)
180{
181 DPRINTF(FreeList,"Freeing int register %i.\n", freed_reg);

--- 13 unchanged lines hidden ---