diff options
Diffstat (limited to 'src/devices/oprom')
-rw-r--r-- | src/devices/oprom/yabel/device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/devices/oprom/yabel/device.c b/src/devices/oprom/yabel/device.c index 7e71a45e97..5e5dc2877d 100644 --- a/src/devices/oprom/yabel/device.c +++ b/src/devices/oprom/yabel/device.c @@ -53,8 +53,7 @@ biosemu_dev_get_addr_info(void) bios_device.devfn = devfn; DEBUG_PRINTF("bus: %x, devfn: %x\n", bus, devfn); - for (i = 0; i < bios_device.dev->resources; i++) { - r = &bios_device.dev->resource[i]; + for (r = bios_device.dev->resource_list; r; r = r->next) { translate_address_array[taa_index].info = r->flags; translate_address_array[taa_index].bus = bus; translate_address_array[taa_index].devfn = devfn; |