|
From: <sv...@va...> - 2005-07-05 18:25:02
|
Author: cerion
Date: 2005-07-05 19:24:22 +0100 (Tue, 05 Jul 2005)
New Revision: 4109
Log:
set default fpu, altivec control words in dispatch-ppc.S (both zero)
Modified:
trunk/coregrind/m_dispatch/dispatch-ppc32.S
Modified: trunk/coregrind/m_dispatch/dispatch-ppc32.S
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_dispatch/dispatch-ppc32.S 2005-07-05 13:44:21 UTC (=
rev 4108)
+++ trunk/coregrind/m_dispatch/dispatch-ppc32.S 2005-07-05 18:24:22 UTC (=
rev 4109)
@@ -84,15 +84,20 @@
/* fetch %CIA into r30 */
lwz 30,OFFSET_ppc32_CIA(31)
=20
+ /* set host FPU control word to the default mode expected=20
+ by VEX-generated code. See comments in libvex.h for
+ more info. */
+ fsub 3,3,3 /* generate zero */
+ mtfsf 0xFF,3
+
+ /* set host AltiVec control word to the default mode expected=20
+ by VEX-generated code. */
+ vsubuwm 3,3,3 /* generate zero */
+ mtvscr 3
+
/* make a stack frame for the code we are calling */
stwu 1,-16(1)
=20
-/* CAB TODO:
- Store any other regs?
- Set any other regs to known state?
- - FPU, XER, CR
-*/
-
/* fall into main loop */
=20
/* Live regs:
|