From patchwork Thu Sep 27 13:55:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 11762 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 0E7AF24146 for ; Thu, 27 Sep 2012 13:55:50 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id B9844A187C0 for ; Thu, 27 Sep 2012 13:55:49 +0000 (UTC) Received: by ieje10 with SMTP id e10so4223312iej.11 for ; Thu, 27 Sep 2012 06:55:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=sjM8u8VyA6hRSRQo89W/oC+fAuU0guuycjE7n+0oaWQ=; b=nHY74KaQBiz4V4XDcKbAm/MmZ/vWrq9VSs+9v89+ImHkM6cJLWFq+jgI12qCYndP/6 5Xag/YIqmuggZTI1oYz+C8Usy4ahcCdLaKpH6H+wAMefL5zvRHr+flSVIMu7mUEDvEhs 5ISYQwE4BmLddGz7ZWbZIJ+apljWmcTgiG2rWQEnCJRUXU99MGBiRRjQ/UmrVIhd3cY6 z4W6x+ZZY3NkqziSfaNQSeRsbo5fL+GvCaJPvMqEchRVHtSiW8WChUO+1ft31BT8FIHa EVMU1yK9CFR2bEOteNjAgEfvvJLeKmm9YqqHHh2kPAiEtRoFiVK4ZQsk01LOUqr2naik 28JA== Received: by 10.42.84.69 with SMTP id k5mr3109851icl.5.1348754148836; Thu, 27 Sep 2012 06:55:48 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp416766igc; Thu, 27 Sep 2012 06:55:47 -0700 (PDT) Received: by 10.216.134.227 with SMTP id s77mr1473686wei.165.1348754146820; Thu, 27 Sep 2012 06:55:46 -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 t49si6877817wed.14.2012.09.27.06.55.45 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 06:55:46 -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; Authentication-Results: mx.google.com; spf=neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1THEZ5-0004ko-3j; Thu, 27 Sep 2012 14:55:43 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: Andrzej Zaborowski , qemu-trivial@nongnu.org, patches@linaro.org Subject: [PATCH] tcg/arm: Use tcg_out_mov_reg rather than inline equivalent code Date: Thu, 27 Sep 2012 14:55:43 +0100 Message-Id: <1348754143-18251-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 X-Gm-Message-State: ALoCoQnItsjm+exqvDYRGQr+8aOHVAQuH6LZaUx45Pf7Rvqs3b9WlKjLlBfI2AmDRy5Jd9sjdv/q Use the recently introduced tcg_out_mov_reg() function rather than the equivalent inline code. Signed-off-by: Peter Maydell Reviewed-by: Aurelien Jarno --- This is a minor follow-on cleanup patch after commit 9716ef3b1. tcg/arm/tcg-target.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c index 2bad0a2..5e8dbdd 100644 --- a/tcg/arm/tcg-target.c +++ b/tcg/arm/tcg-target.c @@ -1197,20 +1197,11 @@ static inline void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, int opc) case 1: case 2: default: - if (data_reg != TCG_REG_R0) { - tcg_out_dat_reg(s, COND_AL, ARITH_MOV, - data_reg, 0, TCG_REG_R0, SHIFT_IMM_LSL(0)); - } + tcg_out_mov_reg(s, COND_AL, data_reg, TCG_REG_R0); break; case 3: - if (data_reg != TCG_REG_R0) { - tcg_out_dat_reg(s, COND_AL, ARITH_MOV, - data_reg, 0, TCG_REG_R0, SHIFT_IMM_LSL(0)); - } - if (data_reg2 != TCG_REG_R1) { - tcg_out_dat_reg(s, COND_AL, ARITH_MOV, - data_reg2, 0, TCG_REG_R1, SHIFT_IMM_LSL(0)); - } + tcg_out_mov_reg(s, COND_AL, data_reg, TCG_REG_R0); + tcg_out_mov_reg(s, COND_AL, data_reg2, TCG_REG_R1); break; }