Message ID | 20240529105454.1149225-6-thuth@redhat.com |
---|---|
State | Accepted |
Commit | a90e319569547ac7477606301b93491f3b886569 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:e110:0:b0:35b:5a80:51b4 with SMTP id t16csp667898wrz; Wed, 29 May 2024 03:56:34 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV8sqmvOJ8YAQjYg/xmFUn6Arrm0J2gmlD8xAOAezzIlrBvB6DN8t7bJRt4qfk+F/xrKyAoM5rSFhG/rad7vIAy X-Google-Smtp-Source: AGHT+IEHDgWSDPrPTo5892Z4mWm1MV2Y6BjI2nEq4ayqtMXAOWO7P1OQG1vqBzaQU/FL5kwjIdFh X-Received: by 2002:a67:eb89:0:b0:48b:a68d:264e with SMTP id ada2fe7eead31-48ba68d27cbmr666665137.26.1716980193920; Wed, 29 May 2024 03:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716980193; cv=none; d=google.com; s=arc-20160816; b=nacOwySmKchH8dkQyVNejjNi0DoUIJpAS0NXVkHk3AOKN0+rHYJbt96mlTZUvy/B/q z+ISw/do3xJ6lhSj+0Sfko/endOeCJf0Ng+QfqC3baRvK2QmHeNYE6VNV82/Cng2dClE Slc3pvZkPJaw2ypv7eWP7ArgAdKZ47NS5NqcHmMdgvfJC0o2YcBH9JPFh0OW5f92Ew45 /aZ84+R/u0WXHSZLwk9WKQbm2fyznsykzo7VGkCUjxJKy2TNTI+V86ccFIJHGBiSiJ5x A7Qw1yERReL3jLsmWsalGg4Ezd/L8PzqhmPX9gA97CnWZFKYqndley39ZOfDitxlEGcW Rkng== 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:dkim-signature; bh=rJ+27ZTIPKuiVc0o8qZqa52r5nGNmKQfLzK98i0xub4=; fh=LvDjHOtLmHsu9QDw2U5vQfic2aYV1dwSTRqXY4MzVo0=; b=xjYAPVRP1CLzoMsCynx9Cuw1KzRMnXSrgpt5zg9kMjMFel53zIZbjtBrNNS0YgT4Qv +me5jqYij1qSkUXOhmOFBZFetd74smKO4LX0LOZ0GotG1b2KrHceQ+nST5oTKaIotNXP G1Ve61Y0bwOjv3a9+tMmnKar4eNbMFzhxWJsl1zzZ6YsyqHFBmn6Grs6QZISbn0P9G7K 8q1e9igxvGeyGr4TJEGsTcueCC8HjrJb8R2nPyFCa+yAGVjO/bUCBNqvjRqO5ukZ26Mc wtKKMJ5fWOyJQ17T+OmrmvDXehorEHaizPxAHL0Ph9Zr4FOtEMjD1rSGWfSk57Bw9yrb WZbw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cFpVfds3; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 af79cd13be357-794abd3d489si1316413885a.476.2024.05.29.03.56.33 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 May 2024 03:56:33 -0700 (PDT) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cFpVfds3; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 1sCGxd-0004Zx-2p; Wed, 29 May 2024 06:55:13 -0400 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 <thuth@redhat.com>) id 1sCGxb-0004Yn-BH for qemu-devel@nongnu.org; Wed, 29 May 2024 06:55:11 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <thuth@redhat.com>) id 1sCGxY-00037w-QD for qemu-devel@nongnu.org; Wed, 29 May 2024 06:55:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1716980108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rJ+27ZTIPKuiVc0o8qZqa52r5nGNmKQfLzK98i0xub4=; b=cFpVfds3iVKw3VikrvMnDAQKTDJoTuSvKSdVcsFFSp94nvttqjE0YPd9gZCeHHBVJmpeOY 9EWEtT2SXasKjGR3qA1wRM2prbSSj+kNpV76lkH2+E5Y6q6YLMbpaI0wlBQo3A27wtl6RP dxfJZ+1cD/MK0vXGT9hw8p1UQmjLcPw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-198-AAcK9wkiOtGBcoFIcmcMMw-1; Wed, 29 May 2024 06:55:04 -0400 X-MC-Unique: AAcK9wkiOtGBcoFIcmcMMw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 32A2685A58C; Wed, 29 May 2024 10:55:04 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.39.192.109]) by smtp.corp.redhat.com (Postfix) with ESMTP id AB974105480A; Wed, 29 May 2024 10:55:02 +0000 (UTC) From: Thomas Huth <thuth@redhat.com> To: qemu-devel@nongnu.org, Richard Henderson <richard.henderson@linaro.org> Cc: qemu-s390x@nongnu.org, Ilya Leoshkevich <iii@linux.ibm.com> Subject: [PULL 05/22] target/s390x: Disable conditional branch-to-next for PER Date: Wed, 29 May 2024 12:54:37 +0200 Message-ID: <20240529105454.1149225-6-thuth@redhat.com> In-Reply-To: <20240529105454.1149225-1-thuth@redhat.com> References: <20240529105454.1149225-1-thuth@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.036, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 |
[PULL,01/22] target/s390x: Do not use unwind for per_check_exception
|
expand
|
diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index de98115c4d..07620948ae 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -1131,13 +1131,13 @@ static DisasJumpType help_branch(DisasContext *s, DisasCompare *c, goto egress; } if (is_imm) { - if (dest == s->pc_tmp) { - /* Branch to next. */ - per_branch(s, true); - ret = DISAS_NEXT; - goto egress; - } - if (c->cond == TCG_COND_ALWAYS) { + /* + * Do not optimize a conditional branch if PER enabled, because we + * still need a conditional call to helper_per_branch. + */ + if (c->cond == TCG_COND_ALWAYS + || (dest == s->pc_tmp && + !(s->base.tb->flags & FLAG_MASK_PER_BRANCH))) { ret = help_goto_direct(s, dest); goto egress; }