dingusdev / dingusppc

An experimental emulator
GNU General Public License v3.0
200 stars 21 forks source link

machinebase: fully initialize devices registered by other devices #60

Closed mihaip closed 7 months ago

mihaip commented 7 months ago

postinit_devices() may cause additional devices to be registered (e.g. PCI hosts will register their cards). We were not calling device_postinit on those devices, because the iterator over the device map was set up at the start of the loop.

Keep looping until we've actually initialized all devices in the map.