[5155] ppc: Convert Altivec register moves to TCG
Revision: 5155
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5155 Author: aurel32 Date: 2008-09-04 14:43:45 +0000 (Thu, 04 Sep 2008)
Log Message:
-----------
ppc: Convert Altivec register moves to TCG
Replace op_{load,store}_avr with helpers gen_{load,store}_avr. Introduce two sets of i64 TCG variables, cpu_avr{h,l}[0..31], and cpu_AVR{h,l}[0..2].
Signed-off-by Andreas Faerber <[email protected]>
Signed-off-by Aurelien Jarno <[email protected]>
Modified Paths:
--------------
trunk/target-ppc/op_template.h
trunk/target-ppc/translate.c
Modified: trunk/target-ppc/op_template.h
===================================================================
target-ppc/op_template.h +0 -39
@@ -18,45 +18,6 @@* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* Altivec registers moves */ -void OPPROTO glue(op_load_avr_A0_avr, REG) (void) -{ -AVR0 = env->avr[REG ]; -RETURN (); -} - -void OPPROTO glue(op_load_avr_A1_avr, REG) (void) -{ -AVR1 = env->avr[REG ]; -RETURN (); -} - -void OPPROTO glue(op_load_avr_A2_avr, REG) (void) -{ -AVR2 = env->avr[REG ]; -RETURN (); -} - -void OPPROTO glue(op_store_A0_avr_avr, REG) (void) -{ - env->avr[REG ] =AVR0 ; -RETURN (); -} - -void OPPROTO glue(op_store_A1_avr_avr, REG) (void) -{ - env->avr[REG ] =AVR1 ; -RETURN (); -} - -#if 0 // unused -void OPPROTO glue(op_store_A2_avr_avr, REG) (void) -{ - env->avr[REG ] =AVR2 ; -RETURN (); -} -#endif -#if REG <=7 /* Condition register moves */ void OPPROTO glue(op_load_crf_T0_crf, REG) (void)
Modified: trunk/target-ppc/translate.c
===================================================================
target-ppc/translate.c +38 -14
102 lines not on this page · raw message