Fixes #716: Stub out parse_x86_cpuid in the non-x86 case;

This commit is contained in:
Benjamin Bouvier
2019-03-28 12:42:37 +01:00
committed by Dan Gohman
parent 86430abc4c
commit 27f4163b89

View File

@@ -88,6 +88,11 @@ fn parse_x86_cpuid(isa_builder: &mut isa::Builder) -> Result<(), &'static str> {
Ok(())
}
#[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))]
fn parse_x86_cpuid(_isa_builder: &mut isa::Builder) -> Result<(), &'static str> {
unreachable!();
}
#[cfg(test)]
mod tests {
use super::builder;