From patchwork Fri Oct 11 13:00:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Musta X-Patchwork-Id: 282742 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5DEE32C00DE for ; Sat, 12 Oct 2013 00:01:16 +1100 (EST) Received: from localhost ([::1]:54221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUcLC-0004rR-AC for incoming@patchwork.ozlabs.org; Fri, 11 Oct 2013 09:01:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUcKi-0004iG-9U for qemu-devel@nongnu.org; Fri, 11 Oct 2013 09:00:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUcKZ-0007Ea-Nk for qemu-devel@nongnu.org; Fri, 11 Oct 2013 09:00:44 -0400 Received: from mail-qa0-x234.google.com ([2607:f8b0:400d:c00::234]:43315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUcKI-0007C8-QD; Fri, 11 Oct 2013 09:00:18 -0400 Received: by mail-qa0-f52.google.com with SMTP id w8so385424qac.4 for ; Fri, 11 Oct 2013 06:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=LqBdEGa0PITMRrRr2/8TaNU5/lCms0fQ+NWS54bDg6k=; b=HhnrECiOfcSUQKdRhFFDaLqKvQPSo9LguFqevrIGRztaYJMd1hDKFDB47ac8h2jbN6 b1tmbNE6i3Ys30LxViEiVDrI/PNw+hfE663DZpP2+PL+MBoEawtaFyEpZuqUru54wQsZ qOw7ysNk5THegoOxSJTxuQI/Ixmgj2Wxffk+rvTvwSDe9YO9vLoHHyR+XrTr9eteLkyu qvXupacX74VsB9Paf64EEDqTRjFbw+vh8PnIGpC/18J1pnJwziRBx0B9QImqtCkrlNoT 3k6TCS5HKfhp+HWqyO4k5WQwOV/et6qsn5KsYg9hvWkEQn7jPx9ENUxcULdJXOWjIUSq 4DQg== X-Received: by 10.229.101.136 with SMTP id c8mr19137356qco.17.1381496418254; Fri, 11 Oct 2013 06:00:18 -0700 (PDT) Received: from [9.10.80.13] (rchp4.rochester.ibm.com. [129.42.161.36]) by mx.google.com with ESMTPSA id k4sm15568090qaa.8.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Oct 2013 06:00:17 -0700 (PDT) Message-ID: <5257F65B.6070100@gmail.com> Date: Fri, 11 Oct 2013 08:00:11 -0500 From: Tom Musta User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: qemu-ppc@nongnu.org References: <5257F4DD.7000204@gmail.com> In-Reply-To: <5257F4DD.7000204@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c00::234 Cc: Tom Musta , qemu-devel@nongnu.org Subject: [Qemu-devel] [v2 05/13] Add stxsdx X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This patch adds the Store VSX Scalar Doubleword Indexed (stxsdx) instruction. Signed-off-by: Tom Musta Reviewed-by: Paolo Bonzini --- target-ppc/translate.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 064cfa1..46b8380 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -7081,6 +7081,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; @@ -9581,6 +9595,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