We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c468038 commit 2f7d8e3Copy full SHA for 2f7d8e3
crates/core_arch/src/x86/cpuid.rs
@@ -59,6 +59,10 @@ pub struct CpuidResult {
59
#[cfg_attr(test, assert_instr(cpuid))]
60
#[stable(feature = "simd_x86", since = "1.27.0")]
61
pub fn __cpuid_count(leaf: u32, sub_leaf: u32) -> CpuidResult {
62
+ if cfg!(target_env = "sgx") {
63
+ panic!("`__cpuid` cannot be used in SGX");
64
+ }
65
+
66
let eax;
67
let ebx;
68
let ecx;
0 commit comments