qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 10/12] mac_via: make SCSI_DATA (DRQ) bit live rather than


From: Laurent Vivier
Subject: Re: [PATCH v2 10/12] mac_via: make SCSI_DATA (DRQ) bit live rather than latched
Date: Thu, 3 Mar 2022 20:57:09 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

Le 24/02/2022 à 12:59, Mark Cave-Ayland a écrit :
The VIA2 on the Q800 machine is not a separate chip as in older Macs but instead
is integrated into the on-board logic. From analysing the SCSI routines in the
MacOS toolbox ROM (and to a lesser extent NetBSD and Linux) the expectation 
seems
to be that the SCSI_DATA (DRQ) bit is live on the Q800 and not latched.

Fortunately we can use the recently introduced mos6522 last_irq_levels variable
which tracks the edge-triggered state to return the SCSI_DATA (DRQ) bit live to
the guest OS.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
  hw/misc/mac_via.c | 17 ++++++++++++++++-
  1 file changed, 16 insertions(+), 1 deletion(-)

Reviewed-by: Laurent Vivier <laurent@vivier.eu>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]