target-ppc: add gen_avr_ptr function.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6098 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e33e94f922
commit
564e571add
|
@ -6083,6 +6083,13 @@ GEN_HANDLER2(icbt_440, "icbt", 0x1F, 0x16, 0x00, 0x03E00001, PPC_BOOKE)
|
||||||
/*** Altivec vector extension ***/
|
/*** Altivec vector extension ***/
|
||||||
/* Altivec registers moves */
|
/* Altivec registers moves */
|
||||||
|
|
||||||
|
static always_inline TCGv_ptr gen_avr_ptr(int reg)
|
||||||
|
{
|
||||||
|
TCGv_ptr r = tcg_temp_new();
|
||||||
|
tcg_gen_addi_ptr(r, cpu_env, offsetof(CPUPPCState, avr[reg]));
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
#define GEN_VR_LDX(name, opc2, opc3) \
|
#define GEN_VR_LDX(name, opc2, opc3) \
|
||||||
GEN_HANDLER(name, 0x1F, opc2, opc3, 0x00000001, PPC_ALTIVEC) \
|
GEN_HANDLER(name, 0x1F, opc2, opc3, 0x00000001, PPC_ALTIVEC) \
|
||||||
{ \
|
{ \
|
||||||
|
|
Loading…
Reference in a new issue