tcg/s390x: Remove FAST_BCR_SER facility check
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 7 Dec 2022 17:43:35 +0000 (17:43 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 6 Jan 2023 23:07:04 +0000 (23:07 +0000)
The fast-bcr-serialization facility is bundled into facility 45,
along with load-on-condition.  We are checking this at startup.

Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/s390x/tcg-target.c.inc
tcg/s390x/tcg-target.h

index 29a64ad0fe3242e4a44edfafd0fd24f80b850e20..dd58f0cdb5dce6a0dcfb76e891a197f217309a38 100644 (file)
@@ -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;
 
index 31d5510d2d68f82c986c057c2dadaeaa8a0cdac3..fc9ae827001bc25f7ed7975d34c8df544ec5d19e 100644 (file)
@@ -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