From patchwork Fri Dec 14 03:19:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 153713 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1598020ljp; Thu, 13 Dec 2018 19:25:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/VlPPk+3mHnWtr8b87K0JRFkiftiW6r7yZcOQ+sjTcgp00ZT37dMdAXClZBUVpSRUKaGsLe X-Received: by 2002:a0c:e5c1:: with SMTP id u1mr1247983qvm.113.1544757941752; Thu, 13 Dec 2018 19:25:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544757941; cv=none; d=google.com; s=arc-20160816; b=E4aHZ4H7xTcuQrVXIEoryOMax6MFB5tVST3mfTj7e7bh9DEnCUhdYUZxs/hK8fsNlg Ku/7y6iWdz/k+oaxq47DIXUUpF8Ep2ImqLShrhT9ZWaLgQ0Ope6fyDVxvXi9cdpAo+L+ Z7srDSy3We8SqWOAeQDNiiQ6ClTZYP22SwXhac2P51YEEvH+g2a7wcj1cT4FwJ3TZJ8G x4ydeGBRq3LiHdxvQBwt1MrFhzlhtf8BN2ydKFRfmEpvE5qtnYBXqgpp0vzxygAgPIgE LNW5Th6Zk4KWYuhqUteA+RgjKZaSVPJoS0E7EppbuEqKTNoKejkBV6yt01XKsGIKbU4l 13rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=qxCbulHcTezeCdPo1nMC+1Z/ifGcrvke19IzYpTinZ4=; b=Qsjm9M6rzSpW9MjaXwuF/inGJfNbM1vG/bsiVXIGAmfoGgNdAzfzTjKjXnDAA1e/tK UiIkZAllq6j5CZrspFQrWUjKZlrOIQOeZZ7CqTfiPcZmdycIdSgjai6TV5zqAjZgg3F7 opiK8pZO6CNsmX7gK2bS8vE0zhv8CyO2w8iXjO5YTEGoLWRufXeigUWRIPraN69QUYQA YaF7nL4a8gZniQ/NbpyucrZ3aEF5NpM1K2klczC/dGC4oA0oHcSR5mgD8Q/OTLtgwJhT 2Fzpi/NxCoJujUfXxErFv8lyWVwV+vBsTP555Xk7lfb68IK79o2mc+YzcWn+lydy8IRf 9sXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Jw+yqr2f; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 63si2243836qth.271.2018.12.13.19.25.41 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 13 Dec 2018 19:25:41 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Jw+yqr2f; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:59079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXe6f-0001pw-6g for patch@linaro.org; Thu, 13 Dec 2018 22:25:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXe0r-0005vz-2N for qemu-devel@nongnu.org; Thu, 13 Dec 2018 22:19:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXe0n-0006g2-Si for qemu-devel@nongnu.org; Thu, 13 Dec 2018 22:19:40 -0500 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]:46981) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXe0n-0006e6-LB for qemu-devel@nongnu.org; Thu, 13 Dec 2018 22:19:37 -0500 Received: by mail-oi1-x22a.google.com with SMTP id x202so3443061oif.13 for ; Thu, 13 Dec 2018 19:19:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qxCbulHcTezeCdPo1nMC+1Z/ifGcrvke19IzYpTinZ4=; b=Jw+yqr2fvCddkqf5n3Q1n6S4/69eGhlHBLZBcJJ5LDVYCcCwGj0vbKt1qz7Qv+ydIq IZCYydUrBjBtKI/rbqJnDoSSwjsaHl5vHC3wcwERyELr3ZIwgFbX8yclluhTX9KWO07U CcdcrSP1T1txOV3YjvvNPnvRZEjnBEB2fsyO0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qxCbulHcTezeCdPo1nMC+1Z/ifGcrvke19IzYpTinZ4=; b=Uew8aVju0vLdK2iRY1gZA4thNDZQNZ9V4Jg+jE9A7OxXTm97SasqFjUbIFpUeI+vNc taWlXotxGab+Bbx4+qXOgXxZ4XL1yF3D+7usqpTwJZejDlGMfTf2gxzbTTWc3MZpx0KK hQLhW8HH0QyeB6elEkncG7K7UnY7DGdly0ekcgsEbw3LLNyBA0qQa+VZHXkLJhTeFPN0 zo+kTF4oJVt2tXmH5sj4QgTNUuoEARM7iCKwiVps89DgUcVoKsC+R//FPl/xMgiimMOH xJ4KudBtPGhzKlIYgf+I9qFVQl2JRSQuAsSzHpHSGnCc5tuKZx8R103DHByOL2mq0u4n WBgQ== X-Gm-Message-State: AA+aEWa3yLXxMTD8FomBJEml3ruvJrZa+clB4POZgNCz6dHJTZEhJlh+ Q8P6x3snfAw/9AbR+d74rxI1EHqRIl4blg== X-Received: by 2002:aca:34c2:: with SMTP id b185mr832520oia.321.1544757576594; Thu, 13 Dec 2018 19:19:36 -0800 (PST) Received: from cloudburst.twiddle.net ([187.217.227.243]) by smtp.gmail.com with ESMTPSA id g138sm2367537oib.26.2018.12.13.19.19.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Dec 2018 19:19:36 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 13 Dec 2018 21:19:00 -0600 Message-Id: <20181214031923.29527-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181214031923.29527-1-richard.henderson@linaro.org> References: <20181214031923.29527-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::22a Subject: [Qemu-devel] [PULL 09/32] tcg/sparc: Remove retranslation code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" There is no longer a need for preserving branch offset operands, as we no longer re-translate. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/sparc/tcg-target.inc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) -- 2.17.2 diff --git a/tcg/sparc/tcg-target.inc.c b/tcg/sparc/tcg-target.inc.c index 04bdc3df5e..671a04c54b 100644 --- a/tcg/sparc/tcg-target.inc.c +++ b/tcg/sparc/tcg-target.inc.c @@ -639,13 +639,11 @@ static void tcg_out_bpcc0(TCGContext *s, int scond, int flags, int off19) static void tcg_out_bpcc(TCGContext *s, int scond, int flags, TCGLabel *l) { - int off19; + int off19 = 0; if (l->has_value) { off19 = INSN_OFF19(tcg_pcrel_diff(s, l->u.value_ptr)); } else { - /* Make sure to preserve destinations during retranslation. */ - off19 = *s->code_ptr & INSN_OFF19(-1); tcg_out_reloc(s, s->code_ptr, R_SPARC_WDISP19, l, 0); } tcg_out_bpcc0(s, scond, flags, off19); @@ -685,13 +683,11 @@ static void tcg_out_brcond_i64(TCGContext *s, TCGCond cond, TCGReg arg1, { /* For 64-bit signed comparisons vs zero, we can avoid the compare. */ if (arg2 == 0 && !is_unsigned_cond(cond)) { - int off16; + int off16 = 0; if (l->has_value) { off16 = INSN_OFF16(tcg_pcrel_diff(s, l->u.value_ptr)); } else { - /* Make sure to preserve destinations during retranslation. */ - off16 = *s->code_ptr & INSN_OFF16(-1); tcg_out_reloc(s, s->code_ptr, R_SPARC_WDISP16, l, 0); } tcg_out32(s, INSN_OP(0) | INSN_OP2(3) | BPR_PT | INSN_RS1(arg1)