[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V3 03/13] Add lxvdsx
From: |
Tom Musta |
Subject: |
[Qemu-devel] [PATCH V3 03/13] Add lxvdsx |
Date: |
Fri, 1 Nov 2013 08:21:13 -0500 |
This patch adds the Load VSX Vector Doubleword & Splat Indexed
(lxvdsx) instruction.
Signed-off-by: Tom Musta <address@hidden>
---
target-ppc/translate.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index 1e2cce1..6a359a2 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -7034,6 +7034,21 @@ static void gen_lxvd2x(DisasContext *ctx)
tcg_temp_free(EA);
}
+static void gen_lxvdsx(DisasContext *ctx)
+{
+ TCGv EA;
+ if (unlikely(!ctx->vsx_enabled)) {
+ gen_exception(ctx, POWERPC_EXCP_VSXU);
+ return;
+ }
+ gen_set_access_type(ctx, ACCESS_INT);
+ EA = tcg_temp_new();
+ gen_addr_reg_index(ctx, EA);
+ gen_qemu_ld64(ctx, cpu_vsrh(xT(ctx->opcode)), EA);
+ tcg_gen_mov_tl(cpu_vsrl(xT(ctx->opcode)), cpu_vsrh(xT(ctx->opcode)));
+ tcg_temp_free(EA);
+}
+
static void gen_stxvd2x(DisasContext *ctx)
{
TCGv EA;
@@ -9531,6 +9546,7 @@ GEN_VAFORM_PAIRED(vmaddfp, vnmsubfp, 23),
GEN_HANDLER_E(lxsdx, 0x1F, 0x0C, 0x12, 0, PPC_NONE, PPC2_VSX),
GEN_HANDLER_E(lxvd2x, 0x1F, 0x0C, 0x1A, 0, PPC_NONE, PPC2_VSX),
+GEN_HANDLER_E(lxvdsx, 0x1F, 0x0C, 0x0A, 0, PPC_NONE, PPC2_VSX),
GEN_HANDLER_E(stxvd2x, 0x1F, 0xC, 0x1E, 0, PPC_NONE, PPC2_VSX),
--
1.7.1
- [Qemu-devel] [PATCH V3 00/13] Stage 2 VSX Support, Tom Musta, 2013/11/01
- [Qemu-devel] [PATCH V3 02/13] Add lxsdx, Tom Musta, 2013/11/01
- [Qemu-devel] [PATCH V3 01/13] Abandon GEN_VSX_* macros, Tom Musta, 2013/11/01
- [Qemu-devel] [PATCH V3 03/13] Add lxvdsx,
Tom Musta <=
- [Qemu-devel] [PATCH V3 04/13] Add lxvw4x, Tom Musta, 2013/11/01
- [Qemu-devel] [PATCH V3 07/13] Add VSX Scalar Move Instructions, Tom Musta, 2013/11/01
- [Qemu-devel] [PATCH V3 05/13] Add stxsdx, Tom Musta, 2013/11/01
- [Qemu-devel] [PATCH V3 08/13] Add VSX Vector Move Instructions, Tom Musta, 2013/11/01
- [Qemu-devel] [PATCH V3 06/13] Add stxvw4x, Tom Musta, 2013/11/01
- [Qemu-devel] [PATCH V3 09/13] Add Power7 VSX Logical Instructions, Tom Musta, 2013/11/01
- [Qemu-devel] [PATCH V3 10/13] Add xxmrgh/xxmrgl, Tom Musta, 2013/11/01
- [Qemu-devel] [PATCH V3 11/13] Add xxsel, Tom Musta, 2013/11/01
- [Qemu-devel] [PATCH V3 12/13] Add xxspltw, Tom Musta, 2013/11/01
- [Qemu-devel] [PATCH V3 13/13] Add xxsldwi, Tom Musta, 2013/11/01