qemu-cr16/hw/sh4
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
..
Kconfig hw/sh4: Remove the deprecated SHIX machine 2024-09-13 20:10:49 +02:00
meson.build hw/sh4: Remove the deprecated SHIX machine 2024-09-13 20:10:49 +02:00
r2d.c hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00
sh7750.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
sh7750_regnames.c hw/sh4: Coding style: Add missing braces 2021-10-30 11:46:40 +02:00
sh7750_regnames.h
sh7750_regs.h sh4: correct typos 2024-02-21 08:16:30 +03:00
trace-events hw/sh4: Remove newline character in trace events 2024-06-10 13:05:27 -04:00
trace.h hw/sh4: Change debug printfs to traces 2021-10-30 18:39:37 +02:00