Revision bb5529bb target-sparc/op_helper.c
b/target-sparc/op_helper.c | ||
---|---|---|
1590 | 1590 |
void helper_ldfsr(void) |
1591 | 1591 |
{ |
1592 | 1592 |
int rnd_mode; |
1593 |
|
|
1594 |
PUT_FSR32(env, *((uint32_t *) &FT0)); |
|
1593 | 1595 |
switch (env->fsr & FSR_RD_MASK) { |
1594 | 1596 |
case FSR_RD_NEAREST: |
1595 | 1597 |
rnd_mode = float_round_nearest_even; |
... | ... | |
1608 | 1610 |
set_float_rounding_mode(rnd_mode, &env->fp_status); |
1609 | 1611 |
} |
1610 | 1612 |
|
1611 |
void helper_debug() |
|
1613 |
void helper_stfsr(void) |
|
1614 |
{ |
|
1615 |
*((uint32_t *) &FT0) = GET_FSR32(env); |
|
1616 |
} |
|
1617 |
|
|
1618 |
void helper_debug(void) |
|
1612 | 1619 |
{ |
1613 | 1620 |
env->exception_index = EXCP_DEBUG; |
1614 | 1621 |
cpu_loop_exit(); |
Also available in: Unified diff