Skip to contentSkip to conversation

[6054] target-ppc: enable PRECISE_EMULATION by default

Qemu-devel Aurelien Jarno 2 participants 3 messages Dec 15, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 6054

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6054
Author:   aurel32
Date:     2008-12-15 17:14:50 +0000 (Mon, 15 Dec 2008)

Log Message:
-----------
target-ppc: enable PRECISE_EMULATION by default

With this option enabled, all glibc math tests pass.

Modified Paths:
--------------
trunk/target-ppc/exec.h

Modified: trunk/target-ppc/exec.h
===================================================================

target-ppc/exec.h +1 -1
@@ -29,7 +29,7 @@
 
 /* For normal operations, precise emulation should not be needed */
 //#define USE_PRECISE_EMULATION 1
-#define USE_PRECISE_EMULATION 0
+#define USE_PRECISE_EMULATION 1
 
 register struct CPUPPCState *env asm(AREG0);
 #define TDX "%016" PRIx64
#1 lore raw
Quoted 10 lines · Aurelien Jarno

Revision: 6054

         http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6054
Author:   aurel32
Date:     2008-12-15 17:14:50 +0000 (Mon, 15 Dec 2008)

Log Message:
-----------
target-ppc: enable PRECISE_EMULATION by default

With this option enabled, all glibc math tests pass.

[...]

target-ppc/exec.h line 32

Quoted 4 lines

/* For normal operations, precise emulation should not be needed */ //#define USE_PRECISE_EMULATION 1

target-ppc/exec.h +1 -1
-#define USE_PRECISE_EMULATION 0
+#define USE_PRECISE_EMULATION 1

Shouldn't you change the comment too so that one can track why USE_PRECISE_EMULATION is needed?

Laurent

#2 lore raw
Quoted 11 lines · Laurent Desnogues
Quoted 10 lines · Aurelien Jarno

Revision: 6054

         http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6054
Author:   aurel32
Date:     2008-12-15 17:14:50 +0000 (Mon, 15 Dec 2008)

Log Message:
-----------
target-ppc: enable PRECISE_EMULATION by default

With this option enabled, all glibc math tests pass.

Quoted 8 lines

[...]

target-ppc/exec.h line 32

Quoted 4 lines

/* For normal operations, precise emulation should not be needed */ //#define USE_PRECISE_EMULATION 1

target-ppc/exec.h +1 -1
-#define USE_PRECISE_EMULATION 0
+#define USE_PRECISE_EMULATION 1

Shouldn't you change the comment too so that one can track why USE_PRECISE_EMULATION is needed?

That is fixed in revision 6058. BTW I wonder if we should really maintain two versions of the code that in most case only differs by a few checks on the operand. Those checks are a and operation followed by a comparison, so they probably take very few time compared to the actual computation.

Any opinion?

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net