free_list.hh (4642:d7b2de2d72f1) | free_list.hh (5362:0adba9a562c9) |
---|---|
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; --- 159 unchanged lines hidden (view full) --- 168 if (freed_reg != TheISA::ZeroReg) 169 freeIntRegs.push(freed_reg); 170 } else if (freed_reg < numPhysicalRegs) { 171#if THE_ISA == ALPHA_ISA 172 if (freed_reg != (TheISA::ZeroReg + numPhysicalIntRegs)) 173#endif 174 freeFloatRegs.push(freed_reg); 175 } | 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; --- 159 unchanged lines hidden (view full) --- 168 if (freed_reg != TheISA::ZeroReg) 169 freeIntRegs.push(freed_reg); 170 } else if (freed_reg < numPhysicalRegs) { 171#if THE_ISA == ALPHA_ISA 172 if (freed_reg != (TheISA::ZeroReg + numPhysicalIntRegs)) 173#endif 174 freeFloatRegs.push(freed_reg); 175 } |
176 177 //assert(freeIntRegs.size() <= numPhysicalIntRegs); |
|
176} 177 178inline void 179SimpleFreeList::addIntReg(PhysRegIndex freed_reg) 180{ 181 DPRINTF(FreeList,"Freeing int register %i.\n", freed_reg); 182 183 freeIntRegs.push(freed_reg); 184} 185 186inline void 187SimpleFreeList::addFloatReg(PhysRegIndex freed_reg) 188{ 189 DPRINTF(FreeList,"Freeing float register %i.\n", freed_reg); 190 191 freeFloatRegs.push(freed_reg); 192} 193 194#endif // __CPU_O3_FREE_LIST_HH__ | 178} 179 180inline void 181SimpleFreeList::addIntReg(PhysRegIndex freed_reg) 182{ 183 DPRINTF(FreeList,"Freeing int register %i.\n", freed_reg); 184 185 freeIntRegs.push(freed_reg); 186} 187 188inline void 189SimpleFreeList::addFloatReg(PhysRegIndex freed_reg) 190{ 191 DPRINTF(FreeList,"Freeing float register %i.\n", freed_reg); 192 193 freeFloatRegs.push(freed_reg); 194} 195 196#endif // __CPU_O3_FREE_LIST_HH__ |