2 * PowerPC emulation micro-operations for qemu.
4 * Copyright (c) 2003-2007 Jocelyn Mayer
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 /* General purpose registers moves */
22 void OPPROTO
glue(op_load_gpr_T0_gpr
, REG
) (void)
28 void OPPROTO
glue(op_load_gpr_T1_gpr
, REG
) (void)
34 void OPPROTO
glue(op_load_gpr_T2_gpr
, REG
) (void)
40 void OPPROTO
glue(op_store_T0_gpr_gpr
, REG
) (void)
46 void OPPROTO
glue(op_store_T1_gpr_gpr
, REG
) (void)
53 void OPPROTO
glue(op_store_T2_gpr_gpr
, REG
) (void)
60 /* General purpose registers containing vector operands moves */
61 #if defined(TARGET_PPCEMB)
62 void OPPROTO
glue(op_load_gpr64_T0_gpr
, REG
) (void)
64 T0_64
= env
->gpr
[REG
];
68 void OPPROTO
glue(op_load_gpr64_T1_gpr
, REG
) (void)
70 T1_64
= env
->gpr
[REG
];
75 void OPPROTO
glue(op_load_gpr64_T2_gpr
, REG
) (void)
77 T2_64
= env
->gpr
[REG
];
82 void OPPROTO
glue(op_store_T0_gpr64_gpr
, REG
) (void)
84 env
->gpr
[REG
] = T0_64
;
88 void OPPROTO
glue(op_store_T1_gpr64_gpr
, REG
) (void)
90 env
->gpr
[REG
] = T1_64
;
95 void OPPROTO
glue(op_store_T2_gpr64_gpr
, REG
) (void)
97 env
->gpr
[REG
] = T2_64
;
101 #endif /* defined(TARGET_PPCEMB) */
103 /* Altivec registers moves */
104 void OPPROTO
glue(op_load_avr_A0_avr
, REG
) (void)
106 AVR0
= env
->avr
[REG
];
110 void OPPROTO
glue(op_load_avr_A1_avr
, REG
) (void)
112 AVR1
= env
->avr
[REG
];
116 void OPPROTO
glue(op_load_avr_A2_avr
, REG
) (void)
118 AVR2
= env
->avr
[REG
];
122 void OPPROTO
glue(op_store_A0_avr_avr
, REG
) (void)
124 env
->avr
[REG
] = AVR0
;
128 void OPPROTO
glue(op_store_A1_avr_avr
, REG
) (void)
130 env
->avr
[REG
] = AVR1
;
135 void OPPROTO
glue(op_store_A2_avr_avr
, REG
) (void)
137 env
->avr
[REG
] = AVR2
;
143 /* Condition register moves */
144 void OPPROTO
glue(op_load_crf_T0_crf
, REG
) (void)
150 void OPPROTO
glue(op_load_crf_T1_crf
, REG
) (void)
156 void OPPROTO
glue(op_store_T0_crf_crf
, REG
) (void)
163 void OPPROTO
glue(op_store_T1_crf_crf
, REG
) (void)
170 #endif /* REG <= 7 */
172 /* floating point registers moves */
173 void OPPROTO
glue(op_load_fpr_FT0_fpr
, REG
) (void)
179 void OPPROTO
glue(op_store_FT0_fpr_fpr
, REG
) (void)
185 void OPPROTO
glue(op_load_fpr_FT1_fpr
, REG
) (void)
191 void OPPROTO
glue(op_store_FT1_fpr_fpr
, REG
) (void)
197 void OPPROTO
glue(op_load_fpr_FT2_fpr
, REG
) (void)
204 void OPPROTO
glue(op_store_FT2_fpr_fpr
, REG
) (void)