diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-11-25 15:26:15 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-02-16 14:25:08 +0100 |
commit | 8a2f1f921cc84cae3aa54c29e24e8c1defc9ef34 (patch) | |
tree | e224ba84a8a17cfd29913bca6c4e9c0bb2918efc /hw/i386/x86.c | |
parent | e3660f60dca85de599c913fda1d156f20495b45a (diff) | |
download | qemu-8a2f1f921cc84cae3aa54c29e24e8c1defc9ef34.zip qemu-8a2f1f921cc84cae3aa54c29e24e8c1defc9ef34.tar.gz qemu-8a2f1f921cc84cae3aa54c29e24e8c1defc9ef34.tar.bz2 |
hw/boards: Explicit no_sdcard=false as ON_OFF_AUTO_OFF
Update MachineClass::no_sdcard default implicit AUTO
initialization to explicit OFF. This flag is consumed
in system/vl.c::qemu_disable_default_devices(). Use
this place to assert we don't have anymore AUTO state.
In hw/ppc/e500.c we add the ppce500_machine_class_init()
method to initialize once all the inherited classes.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20250204200934.65279-3-philmd@linaro.org>
Diffstat (limited to 'hw/i386/x86.c')
-rw-r--r-- | hw/i386/x86.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/x86.c b/hw/i386/x86.c index 69bfc00..e3b92fc 100644 --- a/hw/i386/x86.c +++ b/hw/i386/x86.c @@ -382,6 +382,7 @@ static void x86_machine_class_init(ObjectClass *oc, void *data) mc->get_default_cpu_node_id = x86_get_default_cpu_node_id; mc->possible_cpu_arch_ids = x86_possible_cpu_arch_ids; mc->kvm_type = x86_kvm_type; + mc->no_sdcard = ON_OFF_AUTO_OFF; x86mc->save_tsc_khz = true; x86mc->fwcfg_dma_enabled = true; nc->nmi_monitor_handler = x86_nmi; |