From 36f0d357cfd2ce1d9ba5c67a9f721ed861f71964 Mon Sep 17 00:00:00 2001 From: koniifer Date: Sun, 17 Nov 2024 10:52:13 +0000 Subject: [PATCH] arm cpuid fix --- repbuild/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repbuild/src/main.rs b/repbuild/src/main.rs index 39569a92..2741ef52 100644 --- a/repbuild/src/main.rs +++ b/repbuild/src/main.rs @@ -378,6 +378,7 @@ fn run(release: bool, target: Target, do_accel: bool) -> Result<(), Error> { }; let (mut com, mut com2) = (Command::new(target_str), Command::new(target_str)); let ovmf_path = fetch_ovmf(target); + #[cfg(target_arch = "x86_64")] let accel = if do_accel { let supported = String::from_utf8( com2.args(["--accel", "help"]) @@ -413,6 +414,8 @@ fn run(release: bool, target: Target, do_accel: bool) -> Result<(), Error> { } else { "accel=tcg" }; + #[cfg(not(target_arch = "x86_64"))] + let accel = "accel=tcg"; match target { Target::X86_64 | Target::X86_64Avx2 => {