From patchwork Fri Nov 30 21:52:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 152594 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4168896ljp; Fri, 30 Nov 2018 13:55:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/UhrDw3ohrqo0Ixmz+EQIzjHNlMGBK3/HSDWt0pSWufLfZ9Gf7hZopl4JJ9/oV99Lp8Ealz X-Received: by 2002:a25:bd0b:: with SMTP id f11-v6mr7209972ybk.48.1543614934184; Fri, 30 Nov 2018 13:55:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543614934; cv=none; d=google.com; s=arc-20160816; b=maApISIdJRCgsF0CDlFaEdmtdDx+mHdHIegPYLk4NPiEPeHw6FKHPwSybsVp8LYiji iA6aJSHezoMNE8dqavfFG6KsjCdrc5B09jqR7aHXXXMc4PfQgORXJnssEGM8A+WN8yup SUnhtFF9oRfoP24S0zLQ4+we8ENrMVbXvthEpqSnDbHf5ApLS8qteThe1djuHxSjOqHD lvmcUhvqUtWr7Yk3mqkOtVPSGr9HUnX9hC7xzSaP4OE6ylzr1ECGVP+XexmMdzUzrfmT V2lVIQp3mk0TVAoH42F6r+OHsNqwdrER1XgQqG342ocwuC3D7U6nM8ZnwYUL6SMCqHpV yG6A== 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:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=X3YLeFs2jpUp2Y5o6LtVDE7iCuweZxuSy32euV7GYJ4=; b=CmXIrYVRnNovm9mdZorm+mumVH97jRUAiJMTpjIADwzm5nDC2Esc4yn1yLISKBhjva j/+1WGyV9iX6hS1nGOTFckD10x50PEWdWsa2HUb1duH5UlsmHwtJO7E8v96Q1z3Y1OEf b7UQwwJW6kBCP8DuLXHOI9ZpqOACi+nbD3+aMfZatgnkuJu4PI2hhgwTaMBUqigaxN9d 6bNDPcWvg8qYufAArcRHhLzqNPtGWAhka62CTflQmkMRitqeHc6EVvz+6GoPwVBh1Ll0 EwG+18w57M1UctjIFmSQSglfNrxpdIKPzTog0Tw6oTQrfhz4QGHXl8l8ZBGzh9RqRI7e KA7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=gb6JyEWU; 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 a132si4045576ywc.360.2018.11.30.13.55.33 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 30 Nov 2018 13:55:34 -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=gb6JyEWU; 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]:34749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSql3-0003Mk-KK for patch@linaro.org; Fri, 30 Nov 2018 16:55:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSqiD-00080O-5L for qemu-devel@nongnu.org; Fri, 30 Nov 2018 16:52:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSqiC-00073H-7z for qemu-devel@nongnu.org; Fri, 30 Nov 2018 16:52:37 -0500 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:44116) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSqiC-0006zg-07 for qemu-devel@nongnu.org; Fri, 30 Nov 2018 16:52:36 -0500 Received: by mail-pg1-x542.google.com with SMTP id t13so3036117pgr.11 for ; Fri, 30 Nov 2018 13:52:35 -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; bh=X3YLeFs2jpUp2Y5o6LtVDE7iCuweZxuSy32euV7GYJ4=; b=gb6JyEWUTFLnTOBLXftOkvOebHpzjvyRAKU5wX1sDYz/OKcMAzWi9DQcdukdUoYXVH Bpq9eMUw+ha4JVE/Wv/eK4WPTVD2bwCAjzOd6kyi2SU8ue7zoAbcA0rlBu/Bdnxjo9Im pgLGSQe9WMqZNrnBRhAG/1ZBQa6ryrzVxei14= 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; bh=X3YLeFs2jpUp2Y5o6LtVDE7iCuweZxuSy32euV7GYJ4=; b=hcOa5Bg/q9Yi1nuDBmWu7ujmO0/VaieWVMfEfnv7kx+eUXcbX9u9XcYqwsEs2JIBrf 73T6v7adHhAqBjDeDCSIk/+pCN8YIa4siiZa9jYUVyQkvEJRZoqBl5PXMgud4WKzBXIP 8jXew8deUwuKG8LbnSv0bZ80yr7rTPnMarqFg7WTaLbV7sMs9dn7mfVuIiARCaU+E1vz DRZWViP07o9Yplqd+JW9nApZUY90oEzQulTfYmnIm6mFcPdaHJ7g3YxT+uC6ohopFaaT Dc6MUtsvfOWGzYhRDHW4Co7Mr+WMDyDDh45sWlDsq/NgfRb96+zST4/3jLaZvpxX8GcI OQmQ== X-Gm-Message-State: AA+aEWYt4/y2HW1jiTzExuKJJTIs5lumzg1+iS2ZiGFKeTQZYYOQ5aUr rNL9GEW94S6nfjpMf5q2o9bI/i2vEo4= X-Received: by 2002:a63:f241:: with SMTP id d1mr6230166pgk.2.1543614754603; Fri, 30 Nov 2018 13:52:34 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-170-180.tukw.qwest.net. [97.113.170.180]) by smtp.gmail.com with ESMTPSA id a18sm6973967pgj.30.2018.11.30.13.52.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Nov 2018 13:52:33 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 30 Nov 2018 13:52:14 -0800 Message-Id: <20181130215221.20554-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181130215221.20554-1-richard.henderson@linaro.org> References: <20181130215221.20554-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::542 Subject: [Qemu-devel] [PATCH v3 09/16] 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: alex.bennee@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. Signed-off-by: Richard Henderson --- tcg/sparc/tcg-target.inc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) -- 2.17.2 Reviewed-by: Alex Bennée 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)