qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] macio: remove nonexistent interrupt on pin 1
@ 2015-06-08 23:23 Cormac O'Brien
  2015-06-09  7:45 ` Alexander Graf
  0 siblings, 1 reply; 2+ messages in thread
From: Cormac O'Brien @ 2015-06-08 23:23 UTC (permalink / raw)
  To: agraf, mark.cave-ayland, qemu-devel

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.

Signed-off-by: Cormac O'Brien <i.am.cormac.obrien@gmail.com>

---
 hw/misc/macio/macio.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c
index 063ad80..306c95e 100644
--- a/hw/misc/macio/macio.c
+++ b/hw/misc/macio/macio.c
@@ -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;
-- 
2.4.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] macio: remove nonexistent interrupt on pin 1
  2015-06-08 23:23 [Qemu-devel] [PATCH] macio: remove nonexistent interrupt on pin 1 Cormac O'Brien
@ 2015-06-09  7:45 ` Alexander Graf
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2015-06-09  7:45 UTC (permalink / raw)
  To: Cormac O'Brien, mark.cave-ayland, qemu-devel



On 09.06.15 01:23, Cormac O'Brien wrote:
> 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 qemu-ppc@nongnu.org on v2 :).


Thanks!

Alex

> 
> Signed-off-by: Cormac O'Brien <i.am.cormac.obrien@gmail.com>
> 
> ---
>  hw/misc/macio/macio.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c
> index 063ad80..306c95e 100644
> --- a/hw/misc/macio/macio.c
> +++ b/hw/misc/macio/macio.c
> @@ -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;
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-09  7:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-08 23:23 [Qemu-devel] [PATCH] macio: remove nonexistent interrupt on pin 1 Cormac O'Brien
2015-06-09  7:45 ` Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).