mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
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:
parent
9f7a68136f
commit
376425639d
Notes:
sideshowbarker
2024-07-17 06:24:47 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/376425639d Pull-request: https://github.com/SerenityOS/serenity/pull/15443
1 changed files with 6 additions and 0 deletions
|
@ -121,6 +121,11 @@ if [ "$installed_major_version" -lt "$SERENITY_QEMU_MIN_REQ_MAJOR_VERSION" ] ||
|
||||||
die
|
die
|
||||||
fi
|
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"
|
NATIVE_WINDOWS_QEMU="0"
|
||||||
|
|
||||||
if command -v wslpath >/dev/null; then
|
if command -v wslpath >/dev/null; then
|
||||||
|
@ -256,6 +261,7 @@ if [ -z "$SERENITY_MACHINE" ]; then
|
||||||
SERENITY_MACHINE="-M raspi3b -serial stdio"
|
SERENITY_MACHINE="-M raspi3b -serial stdio"
|
||||||
else
|
else
|
||||||
SERENITY_MACHINE="
|
SERENITY_MACHINE="
|
||||||
|
$SERENITY_MACHINE_FORCE_VERSION_SEVEN_ZERO
|
||||||
-m $SERENITY_RAM_SIZE
|
-m $SERENITY_RAM_SIZE
|
||||||
-smp $SERENITY_CPUS
|
-smp $SERENITY_CPUS
|
||||||
-display $SERENITY_QEMU_DISPLAY_BACKEND
|
-display $SERENITY_QEMU_DISPLAY_BACKEND
|
||||||
|
|
Loading…
Reference in a new issue