From patchwork Thu May 23 11:59:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 17113 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 95DDD2395B for ; Thu, 23 May 2013 12:01:04 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id gd11sf4111780vcb.5 for ; Thu, 23 May 2013 05:00:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=g4dK30P+MhYnp5jNPCeVxoNnZjFgkUaqqJYiP+RRBRs=; b=PtseHcImyep8/wZnz6cBWcE0xQZywTBBVL6C4c3ggXiLCdky1fZzq+dcfsiBdD4i8y izq5a53nmVBjW82W6UsEjnK3mZbPEAYhIW6lCLim1Tur7zl0UFNJLMvsKS//OVnEuDqI 2UrIPv7SNomNCJuzngITLG5U93wMBz0QZzEJzVzqLci+sVjVoqYTLwqr0vR1s0hCZhU8 QUA/WKN79+47o6fhP6ZVPtgHrMixiruqTt4BNsbjh/R2PQvruzSuc+L7MSUymlGd0XyB 8y5i8GqD3FuIffKnx47XV6NbTqZg+F1sZy/md4y+NX8QBu9q5+CH8Mu4y5PJX+qCEjKv TKcA== X-Received: by 10.236.163.193 with SMTP id a41mr6205434yhl.0.1369310409571; Thu, 23 May 2013 05:00:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.70.164 with SMTP id n4ls1348944qeu.64.gmail; Thu, 23 May 2013 05:00:09 -0700 (PDT) X-Received: by 10.220.168.71 with SMTP id t7mr4910888vcy.39.1369310409370; Thu, 23 May 2013 05:00:09 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id sa4si6144660vdc.10.2013.05.23.05.00.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 May 2013 05:00:09 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id ht10so2130070vcb.32 for ; Thu, 23 May 2013 05:00:09 -0700 (PDT) X-Received: by 10.58.172.67 with SMTP id ba3mr4859319vec.58.1369310409231; Thu, 23 May 2013 05:00:09 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.126.138 with SMTP id c10csp47539vcs; Thu, 23 May 2013 05:00:08 -0700 (PDT) X-Received: by 10.180.189.41 with SMTP id gf9mr23767542wic.32.1369310408168; Thu, 23 May 2013 05:00:08 -0700 (PDT) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id a1si14050015wiy.7.2013.05.23.05.00.07 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 23 May 2013 05:00:08 -0700 (PDT) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1UfUBg-0001Nm-B9; Thu, 23 May 2013 13:00:04 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Richard Henderson , John Rigby , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Blue Swirl , Aurelien Jarno Subject: [PATCH 03/10] target-arm: Remove uses of gen_{ld, st}* from iWMMXt code Date: Thu, 23 May 2013 12:59:57 +0100 Message-Id: <1369310404-5285-4-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1369310404-5285-1-git-send-email-peter.maydell@linaro.org> References: <1369310404-5285-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQnxNU1xfpXWDb+t5H9pudWxSjrrQYcvw/9PftpjIGoYgSWIq/PveRMhFnUpZvkUJa5/BRrS X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 8e46527..7ce9a1c 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -1473,13 +1473,15 @@ static int disas_iwmmxt_insn(CPUARMState *env, DisasContext *s, uint32_t insn) tcg_gen_qemu_ld64(cpu_M0, addr, IS_USER(s)); i = 0; } else { /* WLDRW wRd */ - tmp = gen_ld32(addr, IS_USER(s)); + tmp = tcg_temp_new_i32(); + tcg_gen_qemu_ld32u(tmp, addr, IS_USER(s)); } } else { + tmp = tcg_temp_new_i32(); if (insn & (1 << 22)) { /* WLDRH */ - tmp = gen_ld16u(addr, IS_USER(s)); + tcg_gen_qemu_ld16u(tmp, addr, IS_USER(s)); } else { /* WLDRB */ - tmp = gen_ld8u(addr, IS_USER(s)); + tcg_gen_qemu_ld8u(tmp, addr, IS_USER(s)); } } if (i) { @@ -1491,28 +1493,28 @@ static int disas_iwmmxt_insn(CPUARMState *env, DisasContext *s, uint32_t insn) } else { if ((insn >> 28) == 0xf) { /* WSTRW wCx */ tmp = iwmmxt_load_creg(wrd); - gen_st32(tmp, addr, IS_USER(s)); + tcg_gen_qemu_st32(tmp, addr, IS_USER(s)); } else { gen_op_iwmmxt_movq_M0_wRn(wrd); tmp = tcg_temp_new_i32(); if (insn & (1 << 8)) { if (insn & (1 << 22)) { /* WSTRD */ - tcg_temp_free_i32(tmp); tcg_gen_qemu_st64(cpu_M0, addr, IS_USER(s)); } else { /* WSTRW wRd */ tcg_gen_trunc_i64_i32(tmp, cpu_M0); - gen_st32(tmp, addr, IS_USER(s)); + tcg_gen_qemu_st32(tmp, addr, IS_USER(s)); } } else { if (insn & (1 << 22)) { /* WSTRH */ tcg_gen_trunc_i64_i32(tmp, cpu_M0); - gen_st16(tmp, addr, IS_USER(s)); + tcg_gen_qemu_st16(tmp, addr, IS_USER(s)); } else { /* WSTRB */ tcg_gen_trunc_i64_i32(tmp, cpu_M0); - gen_st8(tmp, addr, IS_USER(s)); + tcg_gen_qemu_st8(tmp, addr, IS_USER(s)); } } } + tcg_temp_free_i32(tmp); } tcg_temp_free_i32(addr); return 0;