From nobody Tue Apr 15 02:54:57 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1544757893411324.5536131127036; Thu, 13 Dec 2018 19:24:53 -0800 (PST) Received: from localhost ([::1]:59079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXe5s-0001pw-0D for importer@patchew.org; Thu, 13 Dec 2018 22:24:52 -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) 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) 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-Google-Smtp-Source: AFSGD/XlAVh/sXo8woacZD5mKKvobOVjCYy97BnHZXc3408Gm4WW9EcvQJ9VH7cxDEsHMNiTq4rhfA== X-Received: by 2002:aca:34c2:: with SMTP id b185mr832520oia.321.1544757576594; 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) There is no longer a need for preserving branch offset operands, as we no longer re-translate. Reviewed-by: Alex Benn=C3=A9e Signed-off-by: Richard Henderson --- tcg/sparc/tcg-target.inc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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, i= nt flags, int off19) =20 static void tcg_out_bpcc(TCGContext *s, int scond, int flags, TCGLabel *l) { - int off19; + int off19 =3D 0; =20 if (l->has_value) { off19 =3D INSN_OFF19(tcg_pcrel_diff(s, l->u.value_ptr)); } else { - /* Make sure to preserve destinations during retranslation. */ - off19 =3D *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 =3D=3D 0 && !is_unsigned_cond(cond)) { - int off16; + int off16 =3D 0; =20 if (l->has_value) { off16 =3D INSN_OFF16(tcg_pcrel_diff(s, l->u.value_ptr)); } else { - /* Make sure to preserve destinations during retranslation. */ - off16 =3D *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) --=20 2.17.2