qemu-e2k/hw/microblaze
Markus Armbruster 0de89a8632 hw/microblaze: Replace drive_get_next() by drive_get()
drive_get_next() is basically a bad idea.  It returns the "next" block
backend of a certain interface type.  "Next" means bus=0,unit=N, where
subsequent calls count N up from zero, per interface type.

This lets you define unit numbers implicitly by execution order.  If the
order changes, or new calls appear "in the middle", unit numbers change.
ABI break.  Hard to spot in review.

Machine "petalogix-ml605" connects backends with drive_get_next() in a
counting loop.  Change it to use drive_get() directly.  This makes the
unit numbers explicit in the code.

Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20211117163409.3587705-10-armbru@redhat.com>
Acked-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
2021-12-15 08:38:16 +01:00
..
boot.c Do not include sysemu/sysemu.h if it's not really necessary 2021-05-02 17:24:50 +02:00
boot.h
Kconfig
meson.build meson: convert hw/arch* 2020-08-21 06:30:33 -04:00
petalogix_ml605_mmu.c hw/microblaze: Replace drive_get_next() by drive_get() 2021-12-15 08:38:16 +01:00
petalogix_s3adsp1800_mmu.c
xlnx-zynqmp-pmu.c hw: Replace anti-social QOM type names 2021-03-19 15:18:43 +01:00