Skip to content

Commit 9d60edc

Browse files
committed
fixup
1 parent 70f3228 commit 9d60edc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/x86/misc.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ pub unsafe fn popfd(eflags: u32) {
6767
/// Does the host support the `cpuid` instruction?
6868
#[inline(always)]
6969
pub fn has_cpuid() -> bool {
70-
if cfg!(target_arch = "x86_64") {
70+
#[cfg(target_arch = "x86_64")] {
7171
true
72-
} else {
72+
}
73+
#[cfg(target_arch = "x86")] {
7374
// On `x86` the `cpuid` instruction is not always available.
7475
// This follows the approach indicated in:
7576
// http://wiki.osdev.org/CPUID#Checking_CPUID_availability

0 commit comments

Comments
 (0)