Message ID | 20240221082058.2141850-28-mjt@tls.msk.ru |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:6ac2:0:b0:33b:4db1:f5b3 with SMTP id u2csp302086wrw; Wed, 21 Feb 2024 07:15:31 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWhH0xUzG9EGgNTxPuLJZHZme6M7209OOUwOKekJ3rk/XKHxIXwboNy9XCQ+Tds/Jbu0vHzKgyh0PpO9ZM9q5Gu X-Google-Smtp-Source: AGHT+IFeU0i88wTsrcOYZ7w1yTDOcUHPQSblefPR+ZHJ7MvJeU+vtPh4TC3xo7vVrkpRBVFKYD0Y X-Received: by 2002:a05:6808:de3:b0:3c0:3733:c250 with SMTP id g35-20020a0568080de300b003c03733c250mr15345448oic.20.1708528531347; Wed, 21 Feb 2024 07:15:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708528531; cv=none; d=google.com; s=arc-20160816; b=K2aFc951XTmzHdTdHH/h4rB33rpYFmvvT06h5zeSSsvOl9/k+Ki1fu4jfUWz4UEMT7 WqCWEaZccDfutUfxKfsHnplL7Mb3g5ST2x8dFABTUqURdp53eEyaNEbJRUUG35xb73FX rKli8xupT4N33QHVC42sd+uU/aNjT7Qx53V6vymMrpK3ddZM1oF1uMBcifnEuIQ8dOFD s13t8wno7jOOMkN3NaQU301v7RbTT77yWxzOIks5JH9UaRSO56V0si/IDmabGDRoFBql j7vkGT3vYWtujLL4++7b7m+wcvjpEo2PnHS/xbjWBolH0UWWnbmdz7RQ2AeFhq/9l5mV 0RHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=6rjxqdxGxm78rbZB0upq20MGQOQwMRykEMyVoodVm6I=; fh=bMaafE1clBtiBaCrlbrbcY1DSEPhhFUklUk4XoVHiPU=; b=GnL+i/EwYk/EyTgIeToMt6YrIHWHba/beVzFq3fBAGJs1TPjVkyLnyNoTldPrawK5c UD49kFMZYmcVA3zQt09sZr3CgB0Cz8zm2PcNWrN17LO1yJHMyLV2Uy3YIog1npb41gAL Nz2pzNrguOqnuhbu9ZOr8cg/gFp4/Y2DPO4YCVaJhaIdH5gOdmecCjJWQ/WRXd83lX9U uXcn+9U75f8QEcUc6O4yUQbWFof0Xw3nf8GbIjwL0A8rS3eyCUZmn2jwEhkymiJTqbl8 T+a6hRWqnedGW1ncsFsutMc9tInwUN7LqlKJH9295MeMVarEfoqYQGNvvk/GqlDdZZHY abzw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id gu14-20020a056214260e00b0068f57292ab9si9170141qvb.123.2024.02.21.07.15.31 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Feb 2024 07:15:31 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1rcoJB-0000gZ-R8; Wed, 21 Feb 2024 10:14:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <mjt@tls.msk.ru>) id 1rchsm-0005eU-BS; Wed, 21 Feb 2024 03:23:12 -0500 Received: from isrv.corpit.ru ([86.62.121.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <mjt@tls.msk.ru>) id 1rchsk-0002Rx-CI; Wed, 21 Feb 2024 03:23:12 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id B79F54F3DA; Wed, 21 Feb 2024 11:21:21 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 85884860B9; Wed, 21 Feb 2024 11:21:00 +0300 (MSK) Received: (nullmailer pid 2142072 invoked by uid 1000); Wed, 21 Feb 2024 08:20:58 -0000 From: Michael Tokarev <mjt@tls.msk.ru> To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Richard Henderson <richard.henderson@linaro.org>, Michael Tokarev <mjt@tls.msk.ru> Subject: [Stable-8.2.2 28/60] tcg/arm: Fix goto_tb for large translation blocks Date: Wed, 21 Feb 2024 11:20:16 +0300 Message-Id: <20240221082058.2141850-28-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.2 In-Reply-To: <qemu-stable-8.2.2-20240221110049@cover.tls.msk.ru> References: <qemu-stable-8.2.2-20240221110049@cover.tls.msk.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
None
|
expand
|
diff --git a/tcg/arm/tcg-target.c.inc b/tcg/arm/tcg-target.c.inc index a9aa8aa91c..c9a47b7ea1 100644 --- a/tcg/arm/tcg-target.c.inc +++ b/tcg/arm/tcg-target.c.inc @@ -1736,9 +1736,9 @@ static void tcg_out_goto_tb(TCGContext *s, int which) * shifted immediate from pc. */ int h = -i_disp; - int l = h & 0xfff; + int l = -(h & 0xfff); - h = encode_imm_nofail(h - l); + h = encode_imm_nofail(h + l); tcg_out_dat_imm(s, COND_AL, ARITH_SUB, TCG_REG_R0, TCG_REG_PC, h); tcg_out_ld32_12(s, COND_AL, TCG_REG_PC, TCG_REG_R0, l); }