From patchwork Fri Dec 9 02:05:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 632208 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp588902pvb; Thu, 8 Dec 2022 18:07:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf6IMvVL9E/AbGk1JCBMDldR05gdKiSFySvYkMqSSqhJCQy+CpjwcJ7mVDjb862AElMsGSi8 X-Received: by 2002:ac8:760b:0:b0:3a7:f3c6:8817 with SMTP id t11-20020ac8760b000000b003a7f3c68817mr5535126qtq.54.1670551649037; Thu, 08 Dec 2022 18:07:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670551649; cv=none; d=google.com; s=arc-20160816; b=04T1xD3FwjXg6gOOAqmo0vkYRgqURSJyU5dibkvoTaBa/SFPYThHSMC8+IyXDY8cF2 vmvv5FyhFYSgjHG4+A+lo13zmwBrGN5IhMZfhbS1kviCmp1GSczJ+3PsEkVbGNcUXc80 5LXVwtjHP9Mdk+0oMjrCQ1Tyt51kRMMtscVQj17BW+FQ6JFMUNqkSIyzKGicWOhO3sue meHyrK0MBFEkN/avWv2wVFz2MV5LcbhkJ8CG+4rLhKP391IHgz1wv8AEgUVx5NPbMZS+ xUb8gvRkvHcSTyW/gpvhptYqDLethMZAh9qFqhq2g32FOW6n2lLwwxqzce9x5GTk4nEH cPmQ== 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=/3AO0EWlMT0lILOrDJMjNk2wMlVf+vs0sOwevFdt0Qk=; b=0MAW1/sADyOYkN4+oxshVZf7OJjZEKlTflAXTLf7PKCeSGEyZqjzvVurBZQjjzXTNM YcMc2q6h1asINV7h7w35GGM9pE9+Ca4HgIJ3Ea+r2rgB1mMbqliYYbbPFQr0MgcDhDfv P/c7twh7SAz15VIvCEG6C5uvO19hHx967n8SuDrqhpWrFhOV7yJSZtWpWZin95vrMi+m nUn6WlX3gcvgiIu3LhfTbOC0o/difSJN2/PeC+k5Yfp9Od3JA1FuQQeww1c8u1Bearpe IjcP5lUrIspG3LQMs6g0wFs38JUh4RPI1dzxPC0Vd/uemZLRE2n2Kl4SUx+IRPnFe5Dz 8XKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="JTY/iGJ9"; 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=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id dt44-20020a05620a47ac00b006ed177daa68si63010qkb.32.2022.12.08.18.07.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Dec 2022 18:07:29 -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; dkim=pass header.i=@linaro.org header.s=google header.b="JTY/iGJ9"; 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=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3Slr-0005x2-Qq; Thu, 08 Dec 2022 21:05:51 -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 ) id 1p3Slm-0005w8-A3 for qemu-devel@nongnu.org; Thu, 08 Dec 2022 21:05:46 -0500 Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3Slk-0001vq-PO for qemu-devel@nongnu.org; Thu, 08 Dec 2022 21:05:46 -0500 Received: by mail-oi1-x234.google.com with SMTP id l127so3259646oia.8 for ; Thu, 08 Dec 2022 18:05:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/3AO0EWlMT0lILOrDJMjNk2wMlVf+vs0sOwevFdt0Qk=; b=JTY/iGJ9C5Mr36xPA84a7WAqdtyZMxSRgvmPxpL/EEwLe0arnbuOrhzUT/4D1j0nV3 sD3r/e/PgH456CzMlL3gmmZHMuq+/RNeQgCuMGoeemjkjjiqKY45FatuFA2bTvTk6UrS B2ZoovvhvPX6NQ/tqufF9ag4Q6WjLzlgQdFRyGeE8nDI3rWBhdABpWE+/R2pJFli1yIl KPJLsO8B8VaMjPHCravd45nbQLjckPFVN8vXh0l5A4GRuAsrofoXd0FTcjXHWz3o/mGV hRWURbVH+huTbvbsiVcJo4jVpO3UnLZpQNEx7JMCh7mg0NiRlz6DeA7Ob8qmerVB8/08 GEOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/3AO0EWlMT0lILOrDJMjNk2wMlVf+vs0sOwevFdt0Qk=; b=dRJGd+veUpzh4COw+nlUrGjEwJZJbPVXObu+aOeRBDQZvKSQLQmBk49ufCSsKwPhNU I4MK4Xe7uy60OWmwAmzJz1s4UE4WDDrwLf9en3WcJq5V/BqrBeWOmydLqfKJ+uW/uFCZ g60CVWcuP3Qd8mSPUXtCzOnrsBgADs3tIby2KXIK3wO7IbvWQALxhb72suOVY32Z7LpZ oysVOejH9lUSQPDNYxGXVSlVVCvA0PUVFCckKNgI45gmsfjzOtk7uANC0EgbWzJDN/+K j4k0zgRi2tt5y7T99KbpqhjiWW+KPCWUK/jnvuy1zYjOXcG83TxF8OyEff1/nfnAlHV8 KNpg== X-Gm-Message-State: ANoB5pncfHarCSQgAq7cFIz8IkSCim36VHJZUPAeQdZlKJ6Fimt8vmg9 1zH6mtWfU9/lOK91gfoU81+/WMbWKjyqH6m94s4= X-Received: by 2002:a54:4503:0:b0:35b:822:8d71 with SMTP id l3-20020a544503000000b0035b08228d71mr1542981oil.9.1670551543460; Thu, 08 Dec 2022 18:05:43 -0800 (PST) Received: from stoup.. ([2806:102e:18:2efc:d298:de6f:2ed:87a4]) by smtp.gmail.com with ESMTPSA id s14-20020a05683004ce00b0066f7e1188f0sm53531otd.68.2022.12.08.18.05.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 18:05:42 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: thuth@redhat.com, iii@linux.ibm.com Subject: [PATCH v4 09/27] tcg/s390x: Remove FAST_BCR_SER facility check Date: Thu, 8 Dec 2022 20:05:12 -0600 Message-Id: <20221209020530.396391-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221209020530.396391-1-richard.henderson@linaro.org> References: <20221209020530.396391-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::234; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x234.google.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: 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 The fast-bcr-serialization facility is bundled into facility 45, along with load-on-condition. We are checking this at startup. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- tcg/s390x/tcg-target.h | 1 - tcg/s390x/tcg-target.c.inc | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tcg/s390x/tcg-target.h b/tcg/s390x/tcg-target.h index 31d5510d2d..fc9ae82700 100644 --- a/tcg/s390x/tcg-target.h +++ b/tcg/s390x/tcg-target.h @@ -62,7 +62,6 @@ typedef enum TCGReg { /* Facilities that are checked at runtime. */ -#define FACILITY_FAST_BCR_SER 45 #define FACILITY_DISTINCT_OPS 45 #define FACILITY_LOAD_ON_COND2 53 #define FACILITY_VECTOR 129 diff --git a/tcg/s390x/tcg-target.c.inc b/tcg/s390x/tcg-target.c.inc index 29a64ad0fe..dd58f0cdb5 100644 --- a/tcg/s390x/tcg-target.c.inc +++ b/tcg/s390x/tcg-target.c.inc @@ -2431,7 +2431,8 @@ static inline void tcg_out_op(TCGContext *s, TCGOpcode opc, /* The host memory model is quite strong, we simply need to serialize the instruction stream. */ if (args[0] & TCG_MO_ST_LD) { - tcg_out_insn(s, RR, BCR, HAVE_FACILITY(FAST_BCR_SER) ? 14 : 15, 0); + /* fast-bcr-serialization facility (45) is present */ + tcg_out_insn(s, RR, BCR, 14, 0); } break;