qemu fpu/softfloat-specialize.h fpu/softfloat.c...
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Paul Brook <pbrook> 07/11/18 14:33:24
Modified files:
fpu : softfloat-specialize.h softfloat.c softfloat.h
target-arm/nwfpe: double_cpdo.c single_cpdo.c
target-m68k : helper.c op.c
target-mips : op_helper.c
Log message:
Add strict checking mode for softfp code.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/fpu/softfloat-specialize.h?cvsroot=qemu&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/qemu/fpu/softfloat.c?cvsroot=qemu&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/qemu/fpu/softfloat.h?cvsroot=qemu&r1=1.9&r2=1.10
http://cvs.savannah.gnu.org/viewcvs/qemu/target-arm/nwfpe/double_cpdo.c?cvsroot=qemu&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/qemu/target-arm/nwfpe/single_cpdo.c?cvsroot=qemu&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/qemu/target-m68k/helper.c?cvsroot=qemu&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/qemu/target-m68k/op.c?cvsroot=qemu&r1=1.13&r2=1.14
http://cvs.savannah.gnu.org/viewcvs/qemu/target-mips/op_helper.c?cvsroot=qemu&r1=1.73&r2=1.74
Quoted 4 lines · Paul Brook
CVSROOT: /sources/qemu Module name: qemu Changes by: Paul Brook <pbrook> 07/11/18 14:33:24
Quoted 8 lines
Modified files:
fpu :softfloat-specialize.hsoftfloat.csoftfloat.h
target-arm/nwfpe:double_cpdo.csingle_cpdo.c
target-m68k :helper.cop.c
target-mips :op_helper.cLog message:
Add strict checking mode for softfp code.
This commit has broken sparc-softmmu, for example Aurora 1.0 normally prints:
Running anaconda - please wait...
Probing for video card: Sun TCX (8bit) Probing for monitor type: Unable to probe Probing for mouse type: Sun - Mouse
After this commit:
Running anaconda - please wait...
Traceback (innermost last):
File "/usr/bin/anaconda", line 67, in ?
import dispatch
File "/usr/lib/anaconda/dispatch.py", line 29, in ?
from bootloader import writeBootloader, bootloaderSetupChoices
File "/usr/lib/anaconda/bootloader.py", line 21, in ?
import whrandom
File "/usr/lib/python1.5/whrandom.py", line 140, in ?
_inst = whrandom()
File "/usr/lib/python1.5/whrandom.py", line 46, in __init__
self.seed(x, y, z)
File "/usr/lib/python1.5/whrandom.py", line 59, in seed
t = long(time.time() * 256)IOError: [Errno 2] No such file or directory
install exited abnormally
sending termination signals...done
sending kill signals...done
disabling swap...
unmounting filesystems...
/mnt/runtime done
disabling /dev/loop0
/proc/openprom done
/proc done
/dev/pts done
/mnt/source done
ejecting /tmp/cdrom...
you may safely reboot your system
This and a couple similar changes look suspicious:
&& ( (sbits64) ( zSig + roundIncrement ) < 0 ) )
) {
float_raise( float_flag_overflow | float_flag_inexact STATUS_VAR);
- return packFloat64( zSign, 0x7FF, 0 ) - ( roundIncrement == 0 );
+ return packFloat64( zSign, 0x7FF, - ( roundIncrement == 0 ));
}
if ( zExp < 0 ) {
isTiny =Quoted 4 lines
Quoted 2 lines
Log message:
Add strict checking mode for softfp code.This commit has broken sparc-softmmu,
Strange. My intention was for this commit to have absolutely no functional changes.
FWIW I verified that the debian-sparc installer image booted successfully. I guess this probably doesn't stress the FPU much though.
Quoted 6 lines
This and a couple similar changes look suspicious:
&& ( (sbits64) ( zSig + roundIncrement ) < 0 ) ) ) {
float_raise(float_flag_overflow|float_flag_inexactSTATUS_VAR);
- returnpackFloat64( zSign, 0x7FF, 0 )- ( roundIncrement == 0 );
+ returnpackFloat64( zSign, 0x7FF, - ( roundIncrement == 0 )); }
I'm pretty sure this change is correct. ie. it has no effect on the result.
Paul
Quoted 11 lines · Blue Swirl
Quoted 10 lines · Paul Brook
CVSROOT: /sources/qemu Module name: qemu Changes by: Paul Brook <pbrook> 07/11/18 14:33:24Modified files:
fpu :softfloat-specialize.hsoftfloat.csoftfloat.h
target-arm/nwfpe:double_cpdo.csingle_cpdo.c
target-m68k :helper.cop.c
target-mips :op_helper.c
Quoted 5 lines
Quoted 2 lines
Log message:
Add strict checking mode for softfp code.This commit has broken sparc-softmmu, for example Aurora 1.0 normally prints:
Running anaconda - please wait...
There are also FPU regressions for mips-softmmu, but I haven't found time to find the commit that has broken it, I just know it has been broken over the week-end.
More later...
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 14 lines · Aurelien Jarno
Quoted 13 lines · Blue Swirl
Quoted 12 lines · Paul Brook
CVSROOT: /sources/qemu Module name: qemu Changes by: Paul Brook <pbrook> 07/11/18 14:33:24Modified files:
fpu :softfloat-specialize.hsoftfloat.csoftfloat.h
target-arm/nwfpe:double_cpdo.csingle_cpdo.c
target-m68k :helper.cop.c
target-mips :op_helper.cLog message:
Add strict checking mode for softfp code.
Quoted 8 lines
Quoted 2 lines
This commit has broken sparc-softmmu, for example Aurora 1.0 normally prints:
Running anaconda - please wait...There are also FPU regressions for mips-softmmu, but I haven't found time to find the commit that has broken it, I just know it has been broken over the week-end.
More later...
I am now able to confirm this very same commit has also broken the FPU on mips-softmmu, but I still don't know what is wrong in this commit.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 18 lines · Aurelien Jarno
Quoted 17 lines · Aurelien Jarno
Quoted 15 lines · Blue Swirl
Quoted 4 lines · Paul Brook
CVSROOT: /sources/qemu Module name: qemu Changes by: Paul Brook <pbrook> 07/11/18 14:33:24Quoted 8 lines
Modified files:
fpu :softfloat-specialize.hsoftfloat.csoftfloat.h
target-arm/nwfpe:double_cpdo.csingle_cpdo.c
target-m68k :helper.cop.c
target-mips :op_helper.cLog message:
Add strict checking mode for softfp code.This commit has broken sparc-softmmu, for example Aurora 1.0 normally prints:
Running anaconda - please wait...
Quoted 9 lines
Quoted 5 lines
There are also FPU regressions for mips-softmmu, but I haven't found time to find the commit that has broken it, I just know it has been broken over the week-end.
More later...
I am now able to confirm this very same commit has also broken the FPU on mips-softmmu, but I still don't know what is wrong in this commit.
Ok the problem comes from bad copy&paste. Please find a patch below that fixes the problem on MIPS.
Index: fpu/softfloat.c
===================================================================
RCS file: /sources/qemu/qemu/fpu/softfloat.c,v
retrieving revision 1.8
softfloat.c +6 -6
@@ -3012,7 +3012,7 @@ int float64_eq( float64 a, float64 b STAreturn 0 ; } av =float64_val (a); - bv =float64_val (a); + bv =float64_val (b);return ( av == bv ) || ( (bits64) ( ( av | bv )<<1 ) ==0 ); }
@@ -3038,7 +3038,7 @@ int float64_le( float64 a, float64 b STA aSign =extractFloat64Sign ( a ); bSign =extractFloat64Sign ( b ); av =float64_val (a); - bv =float64_val (a); + bv =float64_val (b);if ( aSign != bSign )return aSign || ( (bits64) ( ( av | bv )<<1 ) ==0 );return ( av == bv ) || ( aSign ^ ( av < bv ) );
@@ -3064,7 +3064,7 @@ int float64_lt( float64 a, float64 b STA aSign =extractFloat64Sign ( a ); bSign =extractFloat64Sign ( b ); av =float64_val (a); - bv =float64_val (a); + bv =float64_val (b);if ( aSign != bSign )return aSign && ( (bits64) ( ( av | bv )<<1 ) !=0 );return ( av != bv ) && ( aSign ^ ( av < bv ) );
@@ -3088,7 +3088,7 @@ int float64_eq_signaling( float64 a, floreturn 0 ; } av =float64_val (a); - bv =float64_val (a); + bv =float64_val (b);return ( av == bv ) || ( (bits64) ( ( av | bv )<<1 ) ==0 ); }
@@ -3116,7 +3116,7 @@ int float64_le_quiet( float64 a, float64 aSign =extractFloat64Sign ( a ); bSign =extractFloat64Sign ( b ); av =float64_val (a); - bv =float64_val (a); + bv =float64_val (b);if ( aSign != bSign )return aSign || ( (bits64) ( ( av | bv )<<1 ) ==0 );return ( av == bv ) || ( aSign ^ ( av < bv ) );
@@ -3145,7 +3145,7 @@ int float64_lt_quiet( float64 a, float64 aSign =extractFloat64Sign ( a ); bSign =extractFloat64Sign ( b ); av =float64_val (a); - bv =float64_val (a); + bv =float64_val (b);if ( aSign != bSign )return aSign && ( (bits64) ( ( av | bv )<<1 ) !=0 );return ( av != bv ) && ( aSign ^ ( av < bv ) );
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Paul Brook
AppliedReview
Quoted 6 lines
Ok the problem comes from bad copy&paste. Please find a patch below that fixes the problem on MIPS.
av = float64_val(a);(quoted diff) +1
-1- bv = float64_val(a); + bv = float64_val(b);
Applied, thanks for tracking this down. Sorry about the breakage.
Paul
2007/11/21, Paul Brook <[email protected]>:
Quoted 4 lines
Quoted 4 lines
Ok the problem comes from bad copy&paste. Please find a patch below that fixes the problem on MIPS.
Quoted 10 lines
Review
Quoted 3 lines
av = float64_val(a);(quoted diff) +1
-1- bv = float64_val(a); + bv = float64_val(b);Applied, thanks for tracking this down. Sorry about the breakage.
Paul
Hi,
Shouldn't these lines in COMPARE be fixed also?
av = float ## s ## _val(a);
\
bv = float ## s ## _val(a);\
Regards,
Edu
Quoted 22 lines · Eduardo Felipe
2007/11/21, Paul Brook <[email protected]>:
Quoted 13 lines
Review
Quoted 6 lines
Ok the problem comes from bad copy&paste. Please find a patch below that fixes the problem on MIPS.
av = float64_val(a);(quoted diff) +1
-1- bv = float64_val(a); + bv = float64_val(b);Applied, thanks for tracking this down. Sorry about the breakage.
Paul
Hi,
Shouldn't these lines in COMPARE be fixed also?
Quoted 7 lines
av = float ## s ## _val(a); \ bv = float ## s ## _val(a); \Regards,
Edu
Thanks, this fixes the Sparc boot FPU problem.
Quoted 8 lines · Paul Brook
Review
Quoted 6 lines
Ok the problem comes from bad copy&paste. Please find a patch below that fixes the problem on MIPS.
av = float64_val(a);(quoted diff) +1
-1- bv = float64_val(a); + bv = float64_val(b);Applied, thanks for tracking this down. Sorry about the breakage.
I saw the FP breakage as well and can confirm it now works again.
Thanks,
Thiemo