RE: [Qemu-devel] [PATCH][SPARC] Full implementation of IEEE exceptions

2007-04-06 Thread Blue Swirl
The attached patch fully implements IEEE exceptions on the SPARC target. Nice work, thank you. Do you know of any code that uses the exceptions? The flags enabling exceptions could be recorded to TB flags so that the check code is generated only when needed, see cpu-exec.c:180.

RE: [Qemu-devel] [PATCH][SPARC] Full implementation of IEEE exceptions

2007-04-06 Thread Blue Swirl
The attached patch fully implements IEEE exceptions on the SPARC target. The patch is broken: gcc-3.3 -Wall -O2 -g -fno-strict-aliasing -fno-reorder-blocks -fno-gcse -fno-optimize-sibling-calls -fno-crossjumping -fno-align-labels -fno-align-jumps -fno-align-functions

Re: [Qemu-devel] [PATCH][SPARC] Full implementation of IEEE exceptions

2007-04-06 Thread Aurelien Jarno
On Fri, Apr 06, 2007 at 08:22:21AM +0200, Blue Swirl wrote: The attached patch fully implements IEEE exceptions on the SPARC target. Nice work, thank you. Do you know of any code that uses the exceptions? I guess no code is using IEEE exceptions to generate a trap, because defining a signal

Re: [Qemu-devel] [PATCH][SPARC] Full implementation of IEEE exceptions

2007-04-06 Thread Aurelien Jarno
On Fri, Apr 06, 2007 at 08:47:57AM +0200, Blue Swirl wrote: The attached patch fully implements IEEE exceptions on the SPARC target. The patch is broken: gcc-3.3 -Wall -O2 -g -fno-strict-aliasing -fno-reorder-blocks -fno-gcse -fno-optimize-sibling-calls -fno-crossjumping

[Qemu-devel] [PATCH][SPARC] Full implementation of IEEE exceptions

2007-04-05 Thread Aurelien Jarno
Hi, The attached patch fully implements IEEE exceptions on the SPARC target. Some more details: - Any floating point operation that does not trap should clear the ftt flags. Similary, any floating point operation that does not generate an IEEE exception should clear the cexec flags. In the