summary refs log tree commit diff stats
path: root/hw/core/null-machine.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-11-25 15:16:54 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-02-16 14:25:08 +0100
commite3660f60dca85de599c913fda1d156f20495b45a (patch)
tree4aac4610da591db8e19e2a9d0f896f4b9a3ab20f /hw/core/null-machine.c
parent250e797ceadad60ee7ebfdb92c76ba2057687597 (diff)
downloadfocaccia-qemu-e3660f60dca85de599c913fda1d156f20495b45a.tar.gz
focaccia-qemu-e3660f60dca85de599c913fda1d156f20495b45a.zip
hw/boards: Convert no_sdcard flag to OnOffAuto tri-state
MachineClass::no_sdcard is initialized as false by default.
To catch all uses, convert it to a tri-state, having the
current default (false) becoming AUTO.

No logical change intended.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20250204200934.65279-2-philmd@linaro.org>
Diffstat (limited to 'hw/core/null-machine.c')
-rw-r--r--hw/core/null-machine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/core/null-machine.c b/hw/core/null-machine.c
index f586a4bef5..b93056c0f7 100644
--- a/hw/core/null-machine.c
+++ b/hw/core/null-machine.c
@@ -53,7 +53,7 @@ static void machine_none_machine_init(MachineClass *mc)
     mc->no_parallel = 1;
     mc->no_floppy = 1;
     mc->no_cdrom = 1;
-    mc->no_sdcard = 1;
+    mc->no_sdcard = ON_OFF_AUTO_ON;
 }
 
 DEFINE_MACHINE("none", machine_none_machine_init)