From 08c9b254e3128021d33652e11f25634a119c743f Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 31 Mar 2021 23:57:32 +0200 Subject: [PATCH] Enabled the new IRQ loss prevention measure in the PIC code that I left disabled the last time, seems to fix SHAMUS but I need feedback. --- src/pic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pic.c b/src/pic.c index 6d6f74dd5..594f1f5fc 100644 --- a/src/pic.c +++ b/src/pic.c @@ -168,7 +168,7 @@ find_best_interrupt(pic_t *dev) int i, j; int ret = -1; -#ifdef READ_LATCH +#ifndef READ_LATCH if (dev->interrupt != 0x17) { /* We have an IRQ already latched, do not update status until it is unlatched in order to avoid IRQ loss. */ @@ -415,7 +415,7 @@ pic_read(uint16_t addr, void *priv) dev->data_bus = dev->isr; #ifdef UNDEFINED_READ else - dev->data_bus = dev->irr; + dev->data_bus = 0x00; #endif } /* If A0 = 0, VIA shadow is disabled, and poll mode is disabled,