summary refs log tree commit diff stats
path: root/hw/acpi/acpi-stub.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-07 16:01:31 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-11 20:03:26 +0100
commite6ffea40e221d26a213a59cba2598e15f01facf3 (patch)
tree79283a46501820c18eeb655830c056ce120de292 /hw/acpi/acpi-stub.c
parent44ac8eaff00735655401e7d899282875da568fa3 (diff)
downloadfocaccia-qemu-e6ffea40e221d26a213a59cba2598e15f01facf3.tar.gz
focaccia-qemu-e6ffea40e221d26a213a59cba2598e15f01facf3.zip
hw/acpi: Introduce acpi_builtin() helper
acpi_builtin() can be used to check at runtime whether
the ACPI subsystem is built in a qemu-system binary.

Reviewed-by: Ani Sinha <anisinha@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20250307223949.54040-3-philmd@linaro.org>
Diffstat (limited to 'hw/acpi/acpi-stub.c')
-rw-r--r--hw/acpi/acpi-stub.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/acpi/acpi-stub.c b/hw/acpi/acpi-stub.c
index e268ce9b1a..790bf509e5 100644
--- a/hw/acpi/acpi-stub.c
+++ b/hw/acpi/acpi-stub.c
@@ -25,3 +25,8 @@ void acpi_table_add(const QemuOpts *opts, Error **errp)
 {
     g_assert_not_reached();
 }
+
+bool acpi_builtin(void)
+{
+    return false;
+}