[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
This commit is contained in:
George Koehler 2022-02-21 15:15:53 -05:00 committed by Brad Smith
parent f9c3310d32
commit 3fa2e66c10
1 changed files with 2 additions and 0 deletions

View File

@ -603,9 +603,11 @@ DEFINE_LIBUNWIND_FUNCTION(__unw_getcontext)
stw 30,128(3)
stw 31,132(3)
#if defined(__ALTIVEC__)
// save VRSave register
mfspr 0, 256
stw 0, 156(3)
#endif
// save CR registers
mfcr 0
stw 0, 136(3)