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 (freed_reg != (TheISA::ZeroReg + numPhysicalIntRegs))
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 ---
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 (freed_reg != (TheISA::ZeroReg + numPhysicalIntRegs))
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 ---