regfile.hh (4352:52f11aaf7d19) regfile.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;

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

174 // Remove the base Float reg dependency.
175 reg_idx = reg_idx - numPhysicalIntRegs;
176
177 assert(reg_idx < numPhysicalFloatRegs);
178
179 DPRINTF(IEW, "RegFile: Setting float register %i to %#x\n",
180 int(reg_idx), (uint64_t)val);
181
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;

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

174 // Remove the base Float reg dependency.
175 reg_idx = reg_idx - numPhysicalIntRegs;
176
177 assert(reg_idx < numPhysicalFloatRegs);
178
179 DPRINTF(IEW, "RegFile: Setting float register %i to %#x\n",
180 int(reg_idx), (uint64_t)val);
181
182#if THE_ISA == ALPHA_ISA
182 if (reg_idx != TheISA::ZeroReg)
183 if (reg_idx != TheISA::ZeroReg)
184#endif
183 floatRegFile[reg_idx].d = val;
184 }
185
186 /** Sets a double precision floating point register to the given value. */
187 void setFloatReg(PhysRegIndex reg_idx, FloatReg val)
188 {
189 // Remove the base Float reg dependency.
190 reg_idx = reg_idx - numPhysicalIntRegs;
191
192 assert(reg_idx < numPhysicalFloatRegs);
193
194 DPRINTF(IEW, "RegFile: Setting float register %i to %#x\n",
195 int(reg_idx), (uint64_t)val);
196
185 floatRegFile[reg_idx].d = val;
186 }
187
188 /** Sets a double precision floating point register to the given value. */
189 void setFloatReg(PhysRegIndex reg_idx, FloatReg val)
190 {
191 // Remove the base Float reg dependency.
192 reg_idx = reg_idx - numPhysicalIntRegs;
193
194 assert(reg_idx < numPhysicalFloatRegs);
195
196 DPRINTF(IEW, "RegFile: Setting float register %i to %#x\n",
197 int(reg_idx), (uint64_t)val);
198
199#if THE_ISA == ALPHA_ISA
197 if (reg_idx != TheISA::ZeroReg)
200 if (reg_idx != TheISA::ZeroReg)
201#endif
198 floatRegFile[reg_idx].d = val;
199 }
200
201 /** Sets a floating point register to the given integer value. */
202 void setFloatRegBits(PhysRegIndex reg_idx, FloatRegBits val, int width)
203 {
204 // Remove the base Float reg dependency.
205 reg_idx = reg_idx - numPhysicalIntRegs;

--- 89 unchanged lines hidden ---
202 floatRegFile[reg_idx].d = val;
203 }
204
205 /** Sets a floating point register to the given integer value. */
206 void setFloatRegBits(PhysRegIndex reg_idx, FloatRegBits val, int width)
207 {
208 // Remove the base Float reg dependency.
209 reg_idx = reg_idx - numPhysicalIntRegs;

--- 89 unchanged lines hidden ---