From bc0125cdcfd60e132cce4314a6018ab11ac8de85 Mon Sep 17 00:00:00 2001 From: Liam <33645555+lj3954@users.noreply.github.com> Date: Sat, 24 Aug 2024 12:58:01 -0700 Subject: [PATCH] fix: Use 1 as default sockets value --- quickemu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quickemu b/quickemu index 3c49a0827f..dc863ffa91 100755 --- a/quickemu +++ b/quickemu @@ -323,6 +323,10 @@ function configure_cpu() { HOST_CPU_SOCKETS=$(get_cpu_info 'Socket') HOST_CPU_VENDOR=$(get_cpu_info 'Vendor') + if [ "${HOST_CPU_SOCKETS}" = "-" ]; then + HOST_CPU_SOCKETS=1 + fi + CPU_MODEL="host" QEMU_ACCEL="tcg" # Configure appropriately for the host platform