mirror of
https://github.com/anrieff/libcpuid
synced 2024-12-16 16:35:45 +00:00
Fix consistency
This commit is contained in:
parent
23b6674ba1
commit
ef988303ae
2 changed files with 6 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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[] = {
|
||||
|
|
Loading…
Reference in a new issue