qemu/hw/mips
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
..
bootloader.c hw/mips/bootloader: Implement nanoMIPS JALRc opcode generator 2023-01-13 09:32:32 +01:00
boston.c hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00
cps.c Accel & Exec patch queue 2024-12-21 11:07:00 -05:00
fuloong2e.c hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00
fw_cfg.c hw/mips: Implement fw_cfg_arch_key_name() 2021-01-04 23:32:27 +01:00
fw_cfg.h hw/mips: Implement fw_cfg_arch_key_name() 2021-01-04 23:32:27 +01:00
jazz.c hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00
Kconfig hw/char: Extract serial-mm 2024-10-03 19:33:23 +02:00
loongson3_bootp.c hw/mips/loongson3_virt: Propagate processor_id to init_loongson_params() 2025-01-31 19:36:43 +01:00
loongson3_bootp.h hw/mips/loongson3_virt: Propagate processor_id to init_loongson_params() 2025-01-31 19:36:43 +01:00
loongson3_virt.c hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00
malta.c hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00
meson.build hw/mips/loongson3_bootp: Move to common_ss[] 2025-01-31 19:36:43 +01:00
mips_int.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
mipssim.c hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00
trace-events hw/mips/gt64xxx_pci: Move it to hw/pci-host/ 2023-01-13 09:32:32 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00