Skip to content
  • Aurelien Jarno's avatar
    target-i386: fix SSE rounding and flush to zero · 2355c16e
    Aurelien Jarno authored
    
    
    SSE rounding and flush to zero control has never been implemented. However
    given that softfloat-native was using a single state for FPU and SSE and
    given that glibc is setting both FPU and SSE state in fesetround(), this
    was working correctly up to the switch to softfloat.
    
    Fix that by adding an update_sse_status() function similar to
    update_fpu_status(), and callin git on write to mxcsr.
    
    Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
    2355c16e