On 19/09/2021 22:10, Philippe Mathieu-Daudé wrote:
On 9/16/21 12:05, Mark Cave-Ayland wrote:
Since there is no need to generate a dummy declaration ROM, remove both
nubus_register_rom() and nubus_register_format_block(). These will shortly be
replaced with a mechanism to optionally load a declaration ROM from disk to
allow real images to be used within QEMU.
Nubus neophyte question: is it OK to load a device without
optional ROM nor dummy?
Yes, since the physical existence of the card is determined by whether the card
accesses generate a bus fault, as per the Apple documentation, which is fixed in
patch 8. The macfb device is an example of this since at least for the Quadra ROM its
resources are not on the card itself, but stored in the MacOS toolbox ROM (normally
referenced as slot 0xf).
Having said that, without a declaration ROM being present then your driver would have
to be able to identify the card the hard way, and at least Linux attempts to parse
the MacOS resources during enumeration. So I'd expect declaration ROMs to be required
for nubus devices that don't have corresponding drivers included in a standard MacOS
toolbox ROM which is likely to be the majority of cases.
ATB,
Mark.