Revision 7c58044c target-ppc/op_template.h

b/target-ppc/op_template.h
165 165
    RETURN();
166 166
}
167 167

  
168
/* Floating point condition and status register moves */
169
void OPPROTO glue(op_load_fpscr_T0_fpscr, REG) (void)
170
{
171
    T0 = env->fpscr[REG];
172
    RETURN();
173
}
174

  
175
#if REG == 0
176
void OPPROTO glue(op_store_T0_fpscr_fpscr, REG) (void)
177
{
178
    env->fpscr[REG] = (env->fpscr[REG] & 0x9) | (T0 & ~0x9);
179
    RETURN();
180
}
181

  
182
void OPPROTO glue(op_clear_fpscr_fpscr, REG) (void)
183
{
184
    env->fpscr[REG] = (env->fpscr[REG] & 0x9);
185
    RETURN();
186
}
187
#else
188
void OPPROTO glue(op_store_T0_fpscr_fpscr, REG) (void)
189
{
190
    env->fpscr[REG] = T0;
191
    RETURN();
192
}
193

  
194
void OPPROTO glue(op_clear_fpscr_fpscr, REG) (void)
195
{
196
    env->fpscr[REG] = 0x0;
197
    RETURN();
198
}
199
#endif
200

  
201 168
#endif /* REG <= 7 */
202 169

  
203 170
/* floating point registers moves */

Also available in: Unified diff