mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
target/ppc: implemented XXSPLTI32DX
Implemented XXSPLTI32DX emulation using decodetree Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Bruno Larsen (billionai) <bruno.larsen@eldorado.org.br> Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br> Message-Id: <20211104123719.323713-21-matheus.ferst@eldorado.org.br> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
6166fced10
commit
aa4592fab7
2 changed files with 28 additions and 0 deletions
|
@ -1466,6 +1466,23 @@ static bool trans_XXSPLTIB(DisasContext *ctx, arg_X_imm8 *a)
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool trans_XXSPLTI32DX(DisasContext *ctx, arg_8RR_D_IX *a)
|
||||
{
|
||||
TCGv_i32 imm;
|
||||
|
||||
REQUIRE_INSNS_FLAGS2(ctx, ISA310);
|
||||
REQUIRE_VSX(ctx);
|
||||
|
||||
imm = tcg_constant_i32(a->si);
|
||||
|
||||
tcg_gen_st_i32(imm, cpu_env,
|
||||
offsetof(CPUPPCState, vsr[a->xt].VsrW(0 + a->ix)));
|
||||
tcg_gen_st_i32(imm, cpu_env,
|
||||
offsetof(CPUPPCState, vsr[a->xt].VsrW(2 + a->ix)));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static void gen_xxsldwi(DisasContext *ctx)
|
||||
{
|
||||
TCGv_i64 xth, xtl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue