1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-16 16:35:45 +00:00

Fix consistency

This commit is contained in:
The Tumultuous Unicorn Of Darkness 2024-06-29 19:00:33 +02:00
parent 23b6674ba1
commit ef988303ae
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A
2 changed files with 6 additions and 5 deletions

View file

@ -60,7 +60,7 @@ for fn in glob.glob("%s/*.c" % sys.argv[1]):
line = 1
nfeat = 0
for s in f.readlines():
if rexp.match(s):
if rexp.match(s) and "CPU_FEATURE_LEVEL_" not in s:
nfeat += 1
res = rexp.findall(s)
assert len(res) == 1, "Too many matches"

View file

@ -422,10 +422,11 @@ void decode_architecture_version_x86(struct cpu_id_t* data)
const struct { const int family; const cpu_feature_level_t feature_level; }
architecture_matchtable_ia_32[] = {
{ 4, CPU_FEATURE_LEVEL_I486 },
{ 5, CPU_FEATURE_LEVEL_I586 },
{ 6, CPU_FEATURE_LEVEL_I686 },
{ 15, CPU_FEATURE_LEVEL_I686 }, // Intel Pentium 4, AMD K8
{ 3, CPU_FEATURE_LEVEL_I386 },
{ 4, CPU_FEATURE_LEVEL_I486 },
{ 5, CPU_FEATURE_LEVEL_I586 },
{ 6, CPU_FEATURE_LEVEL_I686 },
{ 15, CPU_FEATURE_LEVEL_I686 }, // Intel Pentium 4, AMD K8
};
const cpu_feature_t architecture_x86_64_v1[] = {