@ -61,9 +61,8 @@ static inline uint32_t vfp_exceptbits_from_host(int host_bits)
static uint32_t vfp_get_fpsr_from_host ( CPUARMState * env )
{
uint32_t i ;
uint32_t i = 0 ;
i = get_float_exception_flags ( & env - > vfp . fp_status ) ;
i | = get_float_exception_flags ( & env - > vfp . fp_status_a32 ) ;
i | = get_float_exception_flags ( & env - > vfp . fp_status_a64 ) ;
i | = get_float_exception_flags ( & env - > vfp . standard_fp_status ) ;
@ -82,7 +81,6 @@ static void vfp_clear_float_status_exc_flags(CPUARMState *env)
* values . The caller should have arranged for env - > vfp . fpsr to
* be the architecturally up - to - date exception flag information first .
*/
set_float_exception_flags ( 0 , & env - > vfp . fp_status ) ;
set_float_exception_flags ( 0 , & env - > vfp . fp_status_a32 ) ;
set_float_exception_flags ( 0 , & env - > vfp . fp_status_a64 ) ;
set_float_exception_flags ( 0 , & env - > vfp . fp_status_f16 ) ;
@ -112,7 +110,6 @@ static void vfp_set_fpcr_to_host(CPUARMState *env, uint32_t val, uint32_t mask)
i = float_round_to_zero ;
break ;
}
set_float_rounding_mode ( i , & env - > vfp . fp_status ) ;
set_float_rounding_mode ( i , & env - > vfp . fp_status_a32 ) ;
set_float_rounding_mode ( i , & env - > vfp . fp_status_a64 ) ;
set_float_rounding_mode ( i , & env - > vfp . fp_status_f16 ) ;
@ -126,8 +123,6 @@ static void vfp_set_fpcr_to_host(CPUARMState *env, uint32_t val, uint32_t mask)
}
if ( changed & FPCR_FZ ) {
bool ftz_enabled = val & FPCR_FZ ;
set_flush_to_zero ( ftz_enabled , & env - > vfp . fp_status ) ;
set_flush_inputs_to_zero ( ftz_enabled , & env - > vfp . fp_status ) ;
set_flush_to_zero ( ftz_enabled , & env - > vfp . fp_status_a32 ) ;
set_flush_inputs_to_zero ( ftz_enabled , & env - > vfp . fp_status_a32 ) ;
set_flush_to_zero ( ftz_enabled , & env - > vfp . fp_status_a64 ) ;
@ -135,7 +130,6 @@ static void vfp_set_fpcr_to_host(CPUARMState *env, uint32_t val, uint32_t mask)
}
if ( changed & FPCR_DN ) {
bool dnan_enabled = val & FPCR_DN ;
set_default_nan_mode ( dnan_enabled , & env - > vfp . fp_status ) ;
set_default_nan_mode ( dnan_enabled , & env - > vfp . fp_status_a32 ) ;
set_default_nan_mode ( dnan_enabled , & env - > vfp . fp_status_a64 ) ;
set_default_nan_mode ( dnan_enabled , & env - > vfp . fp_status_f16 ) ;