Skip to content

Commit 6a0c7ec

Browse files
feature: Add WBNOINVD feature detection
Added leaf 0x80000008 (Address Sizes and Extended Features) to config, exposing the WBNOINVD flag in EBX bit 9
1 parent d99f4db commit 6a0c7ec

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎src/config.yaml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ cpuids:
155155
name: "Brand String 3"
156156
data_type:
157157
type: String
158+
0x80000008:
159+
name: "Address Sizes and Extended Features"
160+
data_type:
161+
type: BitField
162+
eax: []
163+
ebx:
164+
- {type: Flag, name: "WBNOINVD", bit: 9}
165+
ecx: []
166+
edx: []
158167
msrs:
159168
- name: "Core_Capabilities"
160169
address: 0xCF

‎src/layout.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ impl LeafDesc {
293293
&self.data_type
294294
}
295295

296-
pub fn bind_leaf<CPUIDFunc: CpuidDB>(&self, leaf: u32, cpuid: &CPUIDFunc) -> Option<BoundLeaf> {
296+
pub fn bind_leaf<CPUIDFunc: CpuidDB>(&self, leaf: u32, cpuid: &CPUIDFunc) -> Option<BoundLeaf<'_>> {
297297
let sub_leaves = self.scan_sub_leaves(leaf, cpuid);
298298
if !sub_leaves.is_empty() {
299299
Some(BoundLeaf {

0 commit comments

Comments
 (0)