From patchwork Fri Oct 4 13:17:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Musta X-Patchwork-Id: 280624 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 002C02C00CE for ; Fri, 4 Oct 2013 23:58:02 +1000 (EST) Received: from localhost ([::1]:48161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS5tI-0001yD-Vk for incoming@patchwork.ozlabs.org; Fri, 04 Oct 2013 09:58:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS5Gi-000737-H2 for qemu-devel@nongnu.org; Fri, 04 Oct 2013 09:18:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS5GZ-0003d3-TD for qemu-devel@nongnu.org; Fri, 04 Oct 2013 09:18:08 -0400 Received: from mail-qa0-x232.google.com ([2607:f8b0:400d:c00::232]:40705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS5GI-0003bI-Sw; Fri, 04 Oct 2013 09:17:42 -0400 Received: by mail-qa0-f50.google.com with SMTP id j7so979513qaq.16 for ; Fri, 04 Oct 2013 06:17:42 -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=s0zlY5X9qcMtUe0WKtB9SpfkfEte6kS/ftKfPcAic6U=; b=MwtaOs2Ezy5+fsvGIxord+4YcDphsHLPnbYneGqgx6Z26LJTU9LMnRkHmi2RsgkBIW 5fw78hDnaBGLVNUgRodtseSmoPhuHAwL3kC54loaB5wT8TIQOJsgymeVYlMM98DgSv6V +hzbE43PDMsR5d47sgNeg4sVDFKfuS+ooWWq5iDIsNkWUPIZQKdWbGZF/PaC3WCOK6uY GmuowWRa3kCxgQRc9q2Y2/nDDq8GwjFuurUhfB4euFXw/0FIKaWRE3kdvnbLK5krmE7s FELvYfjrmSLvFnThlbpHFyHcMsP6cd+sV68mGUhUzHUDNBgXf1VOuL+uZ6XIH7pmsT/N JU0Q== X-Received: by 10.224.166.208 with SMTP id n16mr2701781qay.112.1380892662382; Fri, 04 Oct 2013 06:17:42 -0700 (PDT) Received: from [9.10.80.128] (rchp4.rochester.ibm.com. [129.42.161.36]) by mx.google.com with ESMTPSA id v22sm19060296yhn.12.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Oct 2013 06:17:41 -0700 (PDT) Message-ID: <524EBFF0.3000803@gmail.com> Date: Fri, 04 Oct 2013 08:17:36 -0500 From: Tom Musta User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: qemu-ppc@nongnu.org References: <524EBE04.8050207@gmail.com> In-Reply-To: <524EBE04.8050207@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c00::232 X-Mailman-Approved-At: Fri, 04 Oct 2013 09:52:38 -0400 Cc: Tom Musta , qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 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 --- target-ppc/translate.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) #undef GEN_XX3FORM_DM diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 465c991..a4e3a0a 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -7083,6 +7083,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; @@ -9572,6 +9586,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),