qemu/hw/m68k
Philippe Mathieu-Daudé 5824fad4e9 hw/boards: Do not create unusable default if=sd drives
A number of machines create an if=sd drive by default even though
they lack an SD bus, and therefore cannot use the drive.

This drive is created when the machine sets flag
@auto_create_sdcard.

See for example running HMP "info block" on the HPPA C3700 machine:

  $ qemu-system-hppa -M C3700 -monitor stdio -S
  (qemu) info block

  floppy0: [not inserted]
      Removable device: not locked, tray closed

  sd0: [not inserted]
      Removable device: not locked, tray closed

  $ qemu-system-hppa -M C3700 -sd /bin/sh
  qemu-system-hppa: -sd /bin/sh: machine type does not support if=sd,bus=0,unit=0

Delete that from machines that lack an SD bus.

Note, only the ARM and RISCV targets use such feature:

 $ git grep -wl IF_SD hw | cut -d/ -f-2 | sort -u
 hw/arm
 hw/riscv
 $

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20250204200934.65279-5-philmd@linaro.org>
2025-02-16 14:25:08 +01:00
..
an5206.c hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00
bootinfo.h hw/m68k: Use explicit big-endian LD/ST API 2024-10-07 11:33:20 +02:00
Kconfig next-cube: add empty slots for unknown accesses to next.scr memory region 2024-12-29 07:13:47 +01:00
mcf5206.c hw/m68k: Mark devices as big-endian 2024-12-29 06:31:01 +01:00
mcf5208.c hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00
mcf_intc.c hw/m68k: Mark devices as big-endian 2024-12-29 06:31:01 +01:00
meson.build q800: move GLUE device into separate q800-glue.c file 2023-06-22 09:21:57 +02:00
next-cube.c hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00
next-kbd.c hw/m68k: Mark devices as big-endian 2024-12-29 06:31:01 +01:00
q800-glue.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
q800.c hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00
virt.c hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00