OSDN Git Service

cuda.c: add delay to setting of SR_INT bit
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 11 Nov 2015 22:49:51 +0000 (22:49 +0000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 12 Nov 2015 02:15:55 +0000 (13:15 +1100)
commitcffc331a3156870d54883bc79e4278472ffd8f1d
tree2c810060b2565b6d5444d8a4758f93c24ad36ad0
parenta53cfdcca2834ec7e61fd955c4f24ac233c4ec16
cuda.c: add delay to setting of SR_INT bit

MacOS 9 is racy when it comes to accessing the shift register. Fix this by
introducing a small delay between data accesses and raising the SR_INT
interrupt bit.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/misc/macio/cuda.c
hw/ppc/mac.h