diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-03-10 04:46:08 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-03-10 04:46:08 +0000 |
commit | bddec78c7b827fde3f086f6a576237508f7099b0 (patch) | |
tree | a8cb7bfe272097a7d2d27fdaa7e155d2d504612d /sysdeps/unix/sysv/linux/powerpc/powerpc32 | |
parent | 9920a6b8dbabc7627c164011f889fa19a4db1839 (diff) | |
download | glibc-bddec78c7b827fde3f086f6a576237508f7099b0.tar glibc-bddec78c7b827fde3f086f6a576237508f7099b0.tar.gz glibc-bddec78c7b827fde3f086f6a576237508f7099b0.tar.bz2 glibc-bddec78c7b827fde3f086f6a576237508f7099b0.zip |
Use .machine push; .machine "power6" and .machine pop around mtfsf insns outside of _ARCH_PWR6 define.
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/powerpc32')
-rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S | 4 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S b/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S index d83a0ef28d..127c9e4581 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S @@ -204,6 +204,8 @@ ENTRY(__CONTEXT_FUNC_NAME) /* Use the extended four-operand version of the mtfsf insn. */ mtfsf 0xff,fp31,1,0 # else + .machine push + .machine "power6" /* Availability of DFP indicates a 64-bit FPSCR. */ andi. r6,r7,PPC_FEATURE_HAS_DFP beq 7f @@ -212,7 +214,7 @@ ENTRY(__CONTEXT_FUNC_NAME) b 8f /* Continue to operate on the FPSCR as if it were 32-bits. */ 7: mtfsf 0xff,fp31 -8: +8: .machine pop # endif /* _ARCH_PWR6 */ lfd fp1,_UC_FREGS+(1*8)(r31) lfd fp2,_UC_FREGS+(2*8)(r31) diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S b/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S index 243a66a0d4..89b1a61954 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S @@ -430,6 +430,8 @@ ENTRY(__CONTEXT_FUNC_NAME) /* Use the extended four-operand version of the mtfsf insn. */ mtfsf 0xff,fp31,1,0 # else + .machine push + .machine "power6" /* Availability of DFP indicates a 64-bit FPSCR. */ andi. r6,r7,PPC_FEATURE_HAS_DFP beq 7f @@ -438,7 +440,7 @@ ENTRY(__CONTEXT_FUNC_NAME) b 8f /* Continue to operate on the FPSCR as if it were 32-bits. */ 7: mtfsf 0xff,fp31 -8: +8: .machine pop #endif /* _ARCH_PWR6 */ lfd fp1,_UC_FREGS+(1*8)(r31) lfd fp2,_UC_FREGS+(2*8)(r31) |