HostFeatures: Adds support for querying CLWB availability

The x86 runner doesn't support CLWB natively.
This commit is contained in:
Ryan Houdek committed 2023-01-18 17:56:21 -08:00
1 parent 965c6ff6cc
commit bd36bd55ca
6 files changed
+12 -2

No files matched your search

+2
View File
@@ -72,6 +72,7 @@ class HostFeatures(Flag) :
FEATURE_CLZERO = (1 << 5)
FEATURE_BMI1 = (1 << 6)
FEATURE_BMI2 = (1 << 7)
FEATURE_CLWB = (1 << 8)
RegStringLookup = {
"NONE": Regs.REG_NONE,
@@ -143,6 +144,7 @@ HostFeaturesLookup = {
"CLZERO" : HostFeatures.FEATURE_CLZERO,
"BMI1" : HostFeatures.FEATURE_BMI1,
"BMI2" : HostFeatures.FEATURE_BMI2,
"CLWB" : HostFeatures.FEATURE_CLWB,
}
def parse_hexstring(s):