macio: remove nonexistent interrupt on pin 1
PATCH 1/1 macio: remove nonexistent interrupt on pin 1
The current macio device implementation declares an interrupt that doesn't seem to exist in the actual hardware or any other emulators. Mac OS 9 counts the presence of this interrupt as a fatal error and progresses further without it.
--- hw/misc/macio/macio.c | 2 -- 1 file changed, 2 deletions(-)
hw/misc/macio/macio.c +0 -2
@@ -132,8 +132,6 @@ static int macio_common_initfn(PCIDevice *d)SysBusDevice *sysbus_dev;int ret; - d->config[0x3d ] =0x01 ;// interrupt on pin 1 - ret =qdev_init (DEVICE (&s->cuda));if (ret <0 ) {return ret;
Signature · 1 line
2.4.2
Quoted 4 lines · Cormac O'Brien
The current macio device implementation declares an interrupt that doesn't seem to exist in the actual hardware or any other emulators. Mac OS 9 counts the presence of this interrupt as a fatal error and progresses further without it.
This is only half of the problem unfortunately :). The reason the existence of an interrupt pin is a problem is that OpenBIOS automatically generates an interrupt property in the device tree for the macio device.
Please mention this in the patch description as well. Also, please make sure to CC [email protected] on v2 :).
Thanks!
Alex
Quoted 21 lines
Signed-off-by Cormac O'Brien <[email protected]>--- hw/misc/macio/macio.c | 2 -- 1 file changed, 2 deletions(-)hw/misc/macio/macio.c +0
-2@@ -132,8 +132,6 @@ static int macio_common_initfn(PCIDevice *d)SysBusDevice *sysbus_dev;int ret; - d->config[0x3d ] =0x01 ;// interrupt on pin 1 - ret =qdev_init (DEVICE (&s->cuda));if (ret <0 ) {return ret;