]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
tests/x86_amd_features.c: also recognise GenuineIntel
authorFlorian Krohm <flo2030@eich-krohm.de>
Wed, 23 Jul 2025 20:20:54 +0000 (20:20 +0000)
committerFlorian Krohm <flo2030@eich-krohm.de>
Wed, 23 Jul 2025 20:20:54 +0000 (20:20 +0000)
Enables running certain testcases on hardware that identifies itself
as "GenuineIntel".

tests/x86_amd64_features.c

index 488f155b64f5dca678ee4b70d2150d62bb7fc738..5a95e06df31a7cdc7a7d13016c76e6fbea9763d2 100644 (file)
@@ -148,7 +148,8 @@ static Bool go(char* cpu)
    assert( !(cmask != 0 && dmask != 0 && bmask != 0) );
    assert( !(cmask == 0 && dmask == 0 && bmask == 0) );
 
-   if (require_amd && !vendorStringEquals("AuthenticAMD"))
+   if (require_amd && !vendorStringEquals("AuthenticAMD") &&
+       !vendorStringEquals("GenuineIntel"))
       return FEATURE_NOT_PRESENT;
       // regardless of what that feature actually is