qemu/hw/xtensa
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
..
bootparam.h hw/xtensa: Include missing 'exec/tswap.h' header 2024-12-14 00:16:20 +01:00
Kconfig hw/char: Extract serial-mm 2024-10-03 19:33:23 +02:00
meson.build meson: convert hw/arch* 2020-08-21 06:30:33 -04:00
mx_pic.c hw/xtensa: fix reset value of MIROUT register of MX PIC 2022-05-06 15:27:40 -07:00
pic_cpu.c target/xtensa: Include missing 'qemu/atomic.h' header 2023-08-31 19:47:43 +02:00
sim.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
xtensa_memory.c Do not include cpu.h if it's not really necessary 2021-05-02 17:24:51 +02:00
xtensa_memory.h Include exec/memory.h slightly less 2019-08-16 13:31:52 +02:00
xtensa_sim.h hw/xtensa: add virt machine 2019-10-18 20:38:10 -07:00
xtfpga.c hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00