Skip to content

Commit b3e9abd

Browse files
kernightstellar
authored andcommitted
[libunwind] Further fix for 32-bit PowerPC processors without AltiVec
https://reviews.llvm.org/D91906 did most of the work necessary to fix libunwind on 32-bit PowerPC processors without AltiVec, but there was one more piece necessary. Reviewed By: luporl Differential Revision: https://reviews.llvm.org/D120197 (cherry picked from commit 3fa2e66)
1 parent d09f84a commit b3e9abd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libunwind/src/UnwindRegistersSave.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,9 +603,11 @@ DEFINE_LIBUNWIND_FUNCTION(__unw_getcontext)
603603
stw 30,128(3)
604604
stw 31,132(3)
605605

606+
#if defined(__ALTIVEC__)
606607
// save VRSave register
607608
mfspr 0, 256
608609
stw 0, 156(3)
610+
#endif
609611
// save CR registers
610612
mfcr 0
611613
stw 0, 136(3)

0 commit comments

Comments
 (0)