mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-10 22:59:13 +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,6 +422,7 @@ 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[] = {
|
||||
{ 3, CPU_FEATURE_LEVEL_I386 },
|
||||
{ 4, CPU_FEATURE_LEVEL_I486 },
|
||||
{ 5, CPU_FEATURE_LEVEL_I586 },
|
||||
{ 6, CPU_FEATURE_LEVEL_I686 },
|
||||
|
|
Loading…
Reference in a new issue