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.
This commit is contained in:
Andrew Kaster 2022-10-02 13:30:40 -06:00 committed by Linus Groh
parent 9f7a68136f
commit 376425639d
Notes: sideshowbarker 2024-07-17 06:24:47 +09:00

View file

@ -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