ladybird/Ports/qemu/patches/0001-Add-build-system-support-for-SerenityOS.patch
Tim Schumacher be6b3710c8 Ports/qemu: Use the coarse monotonic clock for timing CPU ticks
While this loses quite a bit of accuracy (although to no apparent
decrease in emulation quality) , it helps avoiding the additional
overhead of the `clock_gettime` syscall (as `CLOCK_MONOTONIC_COARSE`
is forwarded using the mapped time page) and we don't have to do a
HPET timer read for each tick.

This results in a decrease of Serenity boot time from 1h16m down to
42m when running on Serenity.
2022-09-30 20:13:11 -07:00

41 lines
1.0 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tim Schumacher <timschumi@gmx.de>
Date: Thu, 5 May 2022 18:49:17 +0200
Subject: [PATCH] Add build system support for SerenityOS
---
configure | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/configure b/configure
index 7c08c18358becf49779c876b0f3d17329df053c6..3177605054876b387cd2b93463025ee3203991e7 100755
--- a/configure
+++ b/configure
@@ -496,6 +496,8 @@ elif check_define __NetBSD__; then
targetos=netbsd
elif check_define __APPLE__; then
targetos=darwin
+elif check_define __serenity__; then
+ targetos=serenity
else
# This is a fatal error, but don't report it yet, because we
# might be going to just print the --help text, or it might
@@ -509,6 +511,7 @@ mingw32="no"
bsd="no"
linux="no"
solaris="no"
+serenity="no"
case $targetos in
windows)
mingw32="yes"
@@ -565,6 +568,9 @@ linux)
linux="yes"
vhost_user=${default_feature:-yes}
;;
+serenity)
+ serenity="yes"
+;;
esac
if test ! -z "$cpu" ; then