Revision 6e35d524 target-ppc/op_helper.c
b/target-ppc/op_helper.c | ||
---|---|---|
843 | 843 |
set_float_rounding_mode(rnd_type, &env->fp_status); |
844 | 844 |
} |
845 | 845 |
|
846 |
void helper_fpscr_clrbit (uint32_t bit) |
|
847 |
{ |
|
848 |
int prev; |
|
849 |
|
|
850 |
prev = (env->fpscr >> bit) & 1; |
|
851 |
env->fpscr &= ~(1 << bit); |
|
852 |
if (prev == 1) { |
|
853 |
switch (bit) { |
|
854 |
case FPSCR_RN1: |
|
855 |
case FPSCR_RN: |
|
856 |
fpscr_set_rounding_mode(); |
|
857 |
break; |
|
858 |
default: |
|
859 |
break; |
|
860 |
} |
|
861 |
} |
|
862 |
} |
|
863 |
|
|
846 | 864 |
void helper_fpscr_setbit (uint32_t bit) |
847 | 865 |
{ |
848 | 866 |
int prev; |
Also available in: Unified diff