powerpc: Optimize AltiVec context switch

Use r8 instead of r5 to slightly optimize _CPU_Context_switch().  It is
not a big deal, however, we already assume r12 is used by
_CPU_Context_switch().  Treat r5 the in same way.
This commit is contained in:
Sebastian Huber
2017-03-07 07:58:11 +01:00
parent c6f7639250
commit a11e1ff576
2 changed files with 30 additions and 31 deletions

View File

@@ -435,11 +435,9 @@ PROC (_CPU_Context_switch):
restore_context:
#if defined(__ALTIVEC__) && !defined(PPC_MULTILIB_ALTIVEC)
mr r14, r5
mr r4, r5
.extern _CPU_Context_switch_altivec
bl _CPU_Context_switch_altivec
mr r5, r14
#endif
lwz r1, PPC_CONTEXT_OFFSET_GPR1(r5)