Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions cpu/microarchitectures.json
Original file line number Diff line number Diff line change
Expand Up @@ -3462,5 +3462,31 @@
"clfsopt": "clflushopt",
"xsave": "xsavec xsaveopt"
}
},
"models": {
"description": "Lookup table from CPU family and model number to the corresponding microarchitecture",
"x86_64": [
{
"family": "6",
"model": "46",
"uarch": "nehalem"
},
Comment on lines +3469 to +3473
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should check the vendor (GenuineIntel) as well.

Copy link
Member Author

@alalazo alalazo Feb 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@isuruf Out of curiosity, do you know of any CPU that needs to be disambiguated by vendor?

{
"family": "6",
"model": "30",
"uarch": "nehalem"
},
{
"family": "6",
"model": "26",
"uarch": "nehalem"
},

{
"family": "6",
"model": "140",
"uarch": "icelake"
}
]
}
}
26 changes: 26 additions & 0 deletions cpu/microarchitectures_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,32 @@
}
},
"additionalProperties": false
},
"models": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"x86_64": {
"type": "array",
"items": {
"type": "object",
"properties": {
"family": {
"type": "string"
},
"model": {
"type": "string"
},
"uarch": {
"type": "string"
}
}
}
}
},
"additionalProperties": false
}
}
}