From nobody Tue Apr 15 02:54:58 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 1544758603316615.9469905889508; Thu, 13 Dec 2018 19:36:43 -0800 (PST) Received: from localhost ([::1]:59143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXeHK-0004Fn-4c for importer@patchew.org; Thu, 13 Dec 2018 22:36:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXe0n-0005uu-QU for qemu-devel@nongnu.org; Thu, 13 Dec 2018 22:19:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXe0m-0006cq-QA for qemu-devel@nongnu.org; Thu, 13 Dec 2018 22:19:37 -0500 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]:41316) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXe0m-0006ai-JE for qemu-devel@nongnu.org; Thu, 13 Dec 2018 22:19:36 -0500 Received: by mail-ot1-x334.google.com with SMTP id u16so4105186otk.8 for ; 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.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Dec 2018 19:19:34 -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=yGI0DQBrYmbbF5yNTiceyVNuONNc8y56jnkN6aCaCvM=; b=J70V09dauxm3M6NrRt/o1ZH80fRRIHkUupR5qtw4sSchM0Qwf4Ob7B3LVIfhMr8IXZ z1iAw1h78W9Y5ZMk69ARvu0awpUl04Q2x5Jl/LLs0txY8UExmpFwolbcRAf9bt97MCpl Bvk0GobIQ0gp8/Ib3ENvDdFhFLtdJviRUgkhs= 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=yGI0DQBrYmbbF5yNTiceyVNuONNc8y56jnkN6aCaCvM=; b=R9qSc3g+qkjueJWlTKiGrei/kOt9Ohw/cH4IYW5A5QRyLW1pR3XB4HqWCTIAwMZlaR 6VRFrmv4iKhMNXdIyYdWu3aMn91+54SMpY7yvicebeC4xnyBUoGXO46iyCojvHHN9PEy VMZOPNBfgfyQfHr9rsjxgJTnMjJ6WNLQiqnM4ZimO2JVPAAizISS9hu42lKxGaZXIo/P /oGBrQHIJD/6PTqtGDIfxijpjkKhEDwsfEHwpXvmy3RLV0V7qymCNRzbsapML7Unk2ww dM/2Bp16V6nOPOhAqIqGeLezVnKB7e7CkznY5nTsyJq7jlhR49yUUykjZfXDJsHA2lRX YxMA== X-Gm-Message-State: AA+aEWYZMBaizVYu124ATYlGaaY0FsuIZn9BCMjXkI5WYehWZaYiIhN8 RDrSqog6mv2f3/zKJNGgs47qXV/KdXJRIg== X-Google-Smtp-Source: AFSGD/VNR3CZPEW/JOOsLJAB80M7+S0D0UDX7qWq863EXwQ0pR8CQDZBQgXZoEgrrwhGjG1LSYYxFA== X-Received: by 2002:a9d:6287:: with SMTP id x7mr1011247otk.304.1544757575577; Thu, 13 Dec 2018 19:19:35 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 13 Dec 2018 21:18:59 -0600 Message-Id: <20181214031923.29527-10-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::334 Subject: [Qemu-devel] [PULL 08/32] tcg/s390: 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/s390/tcg-target.inc.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tcg/s390/tcg-target.inc.c b/tcg/s390/tcg-target.inc.c index 17c435ade5..96c344142e 100644 --- a/tcg/s390/tcg-target.inc.c +++ b/tcg/s390/tcg-target.inc.c @@ -1329,13 +1329,11 @@ static void tgen_branch(TCGContext *s, int cc, TCGL= abel *l) static void tgen_compare_branch(TCGContext *s, S390Opcode opc, int cc, TCGReg r1, TCGReg r2, TCGLabel *l) { - intptr_t off; + intptr_t off =3D 0; =20 if (l->has_value) { off =3D l->u.value_ptr - s->code_ptr; } else { - /* We need to keep the offset unchanged for retranslation. */ - off =3D s->code_ptr[1]; tcg_out_reloc(s, s->code_ptr + 1, R_390_PC16DBL, l, 2); } =20 @@ -1347,13 +1345,11 @@ static void tgen_compare_branch(TCGContext *s, S390= Opcode opc, int cc, static void tgen_compare_imm_branch(TCGContext *s, S390Opcode opc, int cc, TCGReg r1, int i2, TCGLabel *l) { - tcg_target_long off; + tcg_target_long off =3D 0; =20 if (l->has_value) { off =3D l->u.value_ptr - s->code_ptr; } else { - /* We need to keep the offset unchanged for retranslation. */ - off =3D s->code_ptr[1]; tcg_out_reloc(s, s->code_ptr + 1, R_390_PC16DBL, l, 2); } =20 @@ -1696,7 +1692,6 @@ static void tcg_out_qemu_ld(TCGContext* s, TCGReg dat= a_reg, TCGReg addr_reg, =20 base_reg =3D tcg_out_tlb_read(s, addr_reg, opc, mem_index, 1); =20 - /* We need to keep the offset unchanged for retranslation. */ tcg_out16(s, RI_BRC | (S390_CC_NE << 4)); label_ptr =3D s->code_ptr; s->code_ptr +=3D 1; @@ -1724,7 +1719,6 @@ static void tcg_out_qemu_st(TCGContext* s, TCGReg dat= a_reg, TCGReg addr_reg, =20 base_reg =3D tcg_out_tlb_read(s, addr_reg, opc, mem_index, 0); =20 - /* We need to keep the offset unchanged for retranslation. */ tcg_out16(s, RI_BRC | (S390_CC_NE << 4)); label_ptr =3D s->code_ptr; s->code_ptr +=3D 1; --=20 2.17.2