From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id B8FCE3858C54 for ; Wed, 5 Apr 2023 16:21:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B8FCE3858C54 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-x434.google.com with SMTP id u20so24024732pfk.12 for ; Wed, 05 Apr 2023 09:21:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680711707; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=8ZFGpQZu5dIl1+cmfiegVfhCDu/EeEit+/7TGDwC+vo=; b=LsV8juQTiFzjNGP98po5CdwYB43wP8irCOgeeSmUGqXCs35cQwNfjAtaQRjc/PAbIb psCH3d8dKJCA4P4egB1pj9+4I0FHJdE7Pg06GYs+z6ph4WTul7dVEQgXVkWz029txQFK 3PAthw+LG2YJqWDNE65m8xtq2P0drJ+8OQegErQz+pNveSFsRsT0w5elP/vkqCoY5rtT kxHXFcn4dUqfyv3DyvtSyXM3jgUwfGB8cXBWBUbnJlQynWn2O48J4VOkliywr8cAKNrK +aEnZXr5xT1DTWqooBRSRFQW5cZ7mcH/cy9OiT5wLCE2ITgSsTGRDTSJn8AdrXSbdAOC U6iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680711707; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8ZFGpQZu5dIl1+cmfiegVfhCDu/EeEit+/7TGDwC+vo=; b=7aCE3SHYL3qBSMe23E9XmRYM1n+Sw3NN5mGGORSugTx/qtER7ledxvx0zLy0OaTrst Acg3G3nY0RsUswXiZt7SjhJ++Lcwv+5puSpbj53jOtwOH63zYgI/izyabZhIRaOqMHbV uX14z2EGW9Jm1A23bIWh6IYVzDbLXEHc7qRDMZQz18zf7hT9twsY+ioFBy7iv9p86vob ucL0NTwEbuUrGM2BvJZjVeYnlkm/XA8yPp4KbIDpWOA4QJNj2KvlBVFxO9hz4B4maFIA +dsV7gzJx+c7MvEygvgHS1G5A70+W7Z3gy3gH0CB55FN8B7EEmEi3XzJYpgu1cenSV0m Fe+w== X-Gm-Message-State: AAQBX9d4OD3sfGGEshbJ2QUG++1YPlAKfAT0IKE07NzUF+fdIeXq1jtW 8lcRO4KXLV2MGGyDAQBP1/rHIdo1vzY= X-Google-Smtp-Source: AKy350bTHqppSLAQgjmgcJNraPJYayN2BT6x32+4/7DVExiqzl8TzbZMUXALop5aPnW/XMbw7qWFBg== X-Received: by 2002:a62:1b50:0:b0:62a:4fbd:60fe with SMTP id b77-20020a621b50000000b0062a4fbd60femr6241343pfb.12.1680711707417; Wed, 05 Apr 2023 09:21:47 -0700 (PDT) Received: from gnu-cfl-3.localdomain ([172.59.161.240]) by smtp.gmail.com with ESMTPSA id y12-20020a62b50c000000b0062e10435843sm6587348pfe.217.2023.04.05.09.21.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 09:21:45 -0700 (PDT) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id 937A87400A5 for ; Wed, 5 Apr 2023 09:21:44 -0700 (PDT) From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH 04/19] : Add BUS_LOCK_DETECT support Date: Wed, 5 Apr 2023 09:21:29 -0700 Message-Id: <20230405162144.984598-5-hjl.tools@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230405162144.984598-1-hjl.tools@gmail.com> References: <20230405162144.984598-1-hjl.tools@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3025.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Add Bus lock debug exceptions (BUS_LOCK_DETECT) support to . --- manual/platform.texi | 3 +++ sysdeps/x86/bits/platform/x86.h | 2 +- sysdeps/x86/tst-get-cpu-features.c | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/manual/platform.texi b/manual/platform.texi index 9251b63e47..78ee39f650 100644 --- a/manual/platform.texi +++ b/manual/platform.texi @@ -276,6 +276,9 @@ extensions. @item @code{BMI2} -- BMI2 instructions. +@item +@code{BUS_LOCK_DETECT} -- Bus lock debug exceptions. + @item @code{CLDEMOTE} -- CLDEMOTE instruction. diff --git a/sysdeps/x86/bits/platform/x86.h b/sysdeps/x86/bits/platform/x86.h index c9189fa248..e25f1ac53c 100644 --- a/sysdeps/x86/bits/platform/x86.h +++ b/sysdeps/x86/bits/platform/x86.h @@ -187,7 +187,7 @@ enum instructions in 64-bit mode. */ x86_cpu_RDPID = x86_cpu_index_7_ecx + 22, x86_cpu_KL = x86_cpu_index_7_ecx + 23, - x86_cpu_INDEX_7_ECX_24 = x86_cpu_index_7_ecx + 24, + x86_cpu_BUS_LOCK_DETECT = x86_cpu_index_7_ecx + 24, x86_cpu_CLDEMOTE = x86_cpu_index_7_ecx + 25, x86_cpu_INDEX_7_ECX_26 = x86_cpu_index_7_ecx + 26, x86_cpu_MOVDIRI = x86_cpu_index_7_ecx + 27, diff --git a/sysdeps/x86/tst-get-cpu-features.c b/sysdeps/x86/tst-get-cpu-features.c index 5f5cd3e448..dcb735ddd6 100644 --- a/sysdeps/x86/tst-get-cpu-features.c +++ b/sysdeps/x86/tst-get-cpu-features.c @@ -147,6 +147,7 @@ do_test (void) CHECK_CPU_FEATURE_PRESENT (LA57); CHECK_CPU_FEATURE_PRESENT (RDPID); CHECK_CPU_FEATURE_PRESENT (KL); + CHECK_CPU_FEATURE_PRESENT (BUS_LOCK_DETECT); CHECK_CPU_FEATURE_PRESENT (CLDEMOTE); CHECK_CPU_FEATURE_PRESENT (MOVDIRI); CHECK_CPU_FEATURE_PRESENT (MOVDIR64B); -- 2.39.2