From patchwork Wed May 29 10:54:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 799843 Delivered-To: patch@linaro.org Received: by 2002:adf:e110:0:b0:35b:5a80:51b4 with SMTP id t16csp668374wrz; Wed, 29 May 2024 03:58:10 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWIsHKQsRlLFF3dhwk2i0NZBRrzusB1spInvDr1vuvXJqtZEmMLxAKpQwH6AGBmvmsNfJXwzdci/DJeDqsrVHLA X-Google-Smtp-Source: AGHT+IHc9nuzMkctUYnWQB2th7HQMW+ZhEKGHksiaf70BN/rLyuAME9GxCYZ/xrkBQIoDYIVyd0b X-Received: by 2002:a05:6214:4346:b0:6ad:7e9c:c71e with SMTP id 6a1803df08f44-6ad7e9cd369mr87574876d6.42.1716980290740; Wed, 29 May 2024 03:58:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716980290; cv=none; d=google.com; s=arc-20160816; b=fX83AX+lYsIpXvynyk8TyRln2V40cM44RFZGdg+PZ7PDoOswftHXb2z7kjS7ACIjxx 2dhig8acX08hDs9tMaDdU0EAYh+4nqcZIIcSLHaKyH2FrcXWAKM2pXPW+h2uyFQ3t8ln E3Ya1ZuQivaiYws+mSbiBnGs2QgPkDM3NcOuAVq4ShQxVQOaeqY7at2KSzmevmbDkUMY OSa00Lw9lyNqomsanztDTCGI+i0qMjb6QgWnhXYSKxpKf2mQNJ8af40KIXT4N2thxL5B 8CpAH/iGy9rxL2oBymBR6wZtir3aQitZ5vqlPDDoL09KjhT/MK8SjrpKOYDO6ExltL1E HCHw== 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=fKqAyedJK102xoKRLOb8cGk2nvEouv/xEZiHXtiQENY=; fh=gfEqskr+hyu59+Hl6clLR2odP0S5MUZdg4Aztsij8IE=; b=glknE8b/vP4BSsghEx2Un4AN3ZOB8XlvG5T+uP1/8xUy7jSQYw3PWL5nTNlnRBe+a7 XeM2b1C0ECcEE0J5mzsvxz9YobphMG8wcS7/i5ztBVwEps9PwjNZhu6YaysQ8sqc+1l8 HGtlMCK0RZtMP0COyqMtC7qI5KAUGfrWrNhoP82aK8yYwAb3Z7kuV5CSKXwqFsnJKAey M+zQyn63jCKRlx+ullUIRUOwQ7C14aaTQi6q/yHSS/uqBeFa1/y+/9DVSOgJu+K1OTU4 7HG8XxzGOX94lquzGIHO0/iGgYoc6EZpi+q6ddNS9A/o8C63A0UuMvVAHDdbwlsjH8dr C8Cw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TBqoYUld; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac162d3b37si122873016d6.550.2024.05.29.03.58.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 May 2024 03:58:10 -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=TBqoYUld; 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 ) id 1sCGxs-0004jG-19; Wed, 29 May 2024 06:55:28 -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 ) id 1sCGxp-0004hk-PE for qemu-devel@nongnu.org; Wed, 29 May 2024 06:55:26 -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 ) id 1sCGxn-0003EL-VN for qemu-devel@nongnu.org; Wed, 29 May 2024 06:55:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1716980122; 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=fKqAyedJK102xoKRLOb8cGk2nvEouv/xEZiHXtiQENY=; b=TBqoYUldbJozW7pGG1AcDqdET2iy2xM2I8AAYcWhG8DI+ruA0BvI8b6yg3TIp43fDbccMR 8OuvT0T502wO9fKC498D6WTUTJouez6stSHOgmyAJaJ8gPmbFRQPKrRUdNAV66rwxDIC04 fkli2szs7xEZdBg9+KMr2hwy7Ws6sM0= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-6-F3n2VNDXOBaoQeEGZmN_Nw-1; Wed, 29 May 2024 06:55:18 -0400 X-MC-Unique: F3n2VNDXOBaoQeEGZmN_Nw-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 A0ACF1C0512D; Wed, 29 May 2024 10:55:18 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.39.192.109]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7A66F105480A; Wed, 29 May 2024 10:55:17 +0000 (UTC) From: Thomas Huth To: qemu-devel@nongnu.org, Richard Henderson Cc: qemu-s390x@nongnu.org, David Hildenbrand Subject: [PULL 11/22] target/s390x: Fix helper_per_ifetch flags Date: Wed, 29 May 2024 12:54:43 +0200 Message-ID: <20240529105454.1149225-12-thuth@redhat.com> In-Reply-To: <20240529105454.1149225-1-thuth@redhat.com> References: <20240529105454.1149225-1-thuth@redhat.com> MIME-Version: 1.0 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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Richard Henderson CPU state is read on the exception path. Fixes: 83bb161299c ("target-s390x: PER instruction-fetch nullification event support") Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-ID: <20240502054417.234340-12-richard.henderson@linaro.org> Signed-off-by: Thomas Huth --- target/s390x/helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/s390x/helper.h b/target/s390x/helper.h index 5611155ba1..31bd193322 100644 --- a/target/s390x/helper.h +++ b/target/s390x/helper.h @@ -361,7 +361,7 @@ DEF_HELPER_FLAGS_1(purge, TCG_CALL_NO_RWG, void, env) DEF_HELPER_3(lra, i64, env, i64, i64) DEF_HELPER_FLAGS_3(per_check_exception, TCG_CALL_NO_WG, void, env, i64, i32) DEF_HELPER_FLAGS_3(per_branch, TCG_CALL_NO_WG, void, env, i64, i32) -DEF_HELPER_FLAGS_2(per_ifetch, TCG_CALL_NO_RWG, void, env, i64) +DEF_HELPER_FLAGS_2(per_ifetch, TCG_CALL_NO_WG, void, env, i64) DEF_HELPER_FLAGS_2(per_store_real, TCG_CALL_NO_WG, noreturn, env, i32) DEF_HELPER_FLAGS_1(stfl, TCG_CALL_NO_RWG, void, env)