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 |
183 if (reg_idx != TheISA::ZeroReg) |
184#endif |
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 |
200 if (reg_idx != TheISA::ZeroReg) |
201#endif |
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 --- |