From a11e1ff57688a5cee5b0f807b970fe9eec05ac62 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 7 Mar 2017 07:58:11 +0100 Subject: 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. --- c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S | 2 -- 1 file changed, 2 deletions(-) (limited to 'c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S') diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S b/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S index a1ec64b8e4..c0e11da076 100644 --- a/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S +++ b/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S @@ -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) -- cgit v1.2.3