mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-08 07:42:09 +03:00
fix hwcap access in powerpc-sf setjmp/longjmp
commit 7be59733d7
introduced the
hwcap-based branches to support the SPE FPU, but wrongly coded them as
bitwise tests on the computed address of __hwcap, not a value loaded
from that address. replace the add with indexed load to fix it.
This commit is contained in:
parent
3733c831f2
commit
8274aaaaa1
@ -44,7 +44,7 @@ longjmp:
|
|||||||
.long __hwcap-.
|
.long __hwcap-.
|
||||||
1: mflr 4
|
1: mflr 4
|
||||||
lwz 5, 0(4)
|
lwz 5, 0(4)
|
||||||
add 4, 4, 5
|
lwzx 4, 4, 5
|
||||||
andis. 4, 4, 0x80
|
andis. 4, 4, 0x80
|
||||||
beq 1f
|
beq 1f
|
||||||
.long 0x11c35b01 /* evldd 14,88(3) */
|
.long 0x11c35b01 /* evldd 14,88(3) */
|
||||||
|
@ -44,7 +44,7 @@ setjmp:
|
|||||||
.long __hwcap-.
|
.long __hwcap-.
|
||||||
1: mflr 4
|
1: mflr 4
|
||||||
lwz 5, 0(4)
|
lwz 5, 0(4)
|
||||||
add 4, 4, 5
|
lwzx 4, 4, 5
|
||||||
andis. 4, 4, 0x80
|
andis. 4, 4, 0x80
|
||||||
beq 1f
|
beq 1f
|
||||||
.long 0x11c35b21 /* evstdd 14,88(3) */
|
.long 0x11c35b21 /* evstdd 14,88(3) */
|
||||||
|
Loading…
Reference in New Issue
Block a user