From 376425639d032b29a42ca5354eb11a08ce8b991b Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sun, 2 Oct 2022 13:30:40 -0600 Subject: [PATCH] Meta: Force -machine pc-i440fx-7.0 when using QEMU >= 7.1 Until the root cause behind #14952 is found, this workaround should stem the tide of users in discord asking why their system crashes on startup. --- Meta/run.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Meta/run.sh b/Meta/run.sh index 4f49a778cd2..d8bb860f5b2 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -121,6 +121,11 @@ if [ "$installed_major_version" -lt "$SERENITY_QEMU_MIN_REQ_MAJOR_VERSION" ] || die fi +# https://github.com/SerenityOS/serenity/issues/14952 +if [ "$installed_major_version" -ge 7 ] && [ "$installed_minor_version" -gt 0 ]; then + SERENITY_MACHINE_FORCE_VERSION_SEVEN_ZERO="-machine pc-i440fx-7.0" +fi + NATIVE_WINDOWS_QEMU="0" if command -v wslpath >/dev/null; then @@ -256,6 +261,7 @@ if [ -z "$SERENITY_MACHINE" ]; then SERENITY_MACHINE="-M raspi3b -serial stdio" else SERENITY_MACHINE=" + $SERENITY_MACHINE_FORCE_VERSION_SEVEN_ZERO -m $SERENITY_RAM_SIZE -smp $SERENITY_CPUS -display $SERENITY_QEMU_DISPLAY_BACKEND