[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 13/32] Add stxsdx
From: |
Alexander Graf |
Subject: |
[Qemu-devel] [PULL 13/32] Add stxsdx |
Date: |
Fri, 20 Dec 2013 02:00:35 +0100 |
From: Tom Musta <address@hidden>
This patch adds the Store VSX Scalar Doubleword Indexed (stxsdx)
instruction.
Signed-off-by: Tom Musta <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
---
target-ppc/translate.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index 62e74a6..559fc15 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -7077,6 +7077,20 @@ static void gen_lxvw4x(DisasContext *ctx)
tcg_temp_free(tmp);
}
+static void gen_stxsdx(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_st64(ctx, cpu_vsrh(xS(ctx->opcode)), EA);
+ tcg_temp_free(EA);
+}
+
static void gen_stxvd2x(DisasContext *ctx)
{
TCGv EA;
@@ -9565,6 +9579,7 @@ 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(lxvw4x, 0x1F, 0x0C, 0x18, 0, PPC_NONE, PPC2_VSX),
+GEN_HANDLER_E(stxsdx, 0x1F, 0xC, 0x16, 0, PPC_NONE, PPC2_VSX),
GEN_HANDLER_E(stxvd2x, 0x1F, 0xC, 0x1E, 0, PPC_NONE, PPC2_VSX),
#undef GEN_XX3FORM_DM
--
1.8.1.4
- [Qemu-devel] [PULL 05/32] Add VSX Instruction Decoders, (continued)
- [Qemu-devel] [PULL 05/32] Add VSX Instruction Decoders, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 08/32] Add stxvd2x, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 01/32] target-ppc: add stubs for KVM breakpoints, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 03/32] Declare and Enable VSX, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 11/32] Add lxvdsx, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 14/32] Add stxvw4x, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 24/32] Add xxmrgh/xxmrgl, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 10/32] Add lxsdx, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 09/32] Add xxpermdi, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 12/32] Add lxvw4x, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 13/32] Add stxsdx,
Alexander Graf <=
- [Qemu-devel] [PULL 15/32] target-ppc: move POWER7+ to a separate family, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 23/32] Add Power7 VSX Logical Instructions, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 19/32] spapr: tie spapr-nvram to -pflash, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 17/32] spapr-rtas: add ibm, (get|set)-system-parameter, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 18/32] PPC: Use default pci bus name for grackle and heathrow, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 31/32] spapr: make sure RMA is in first mode of first memory node, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 28/32] PPC: Add VSX to hflags, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 27/32] Add xxsldwi, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 22/32] Add VSX Vector Move Instructions, Alexander Graf, 2013/12/19
- [Qemu-devel] [PULL 26/32] Add xxspltw, Alexander Graf, 2013/12/19