Merge pull request #2468 from 86Box/audiopci_fix

Revert to the old NMI way in the AudioPCI code.
This commit is contained in:
Miran Grča
2022-07-16 22:13:38 +02:00
committed by GitHub
5 changed files with 0 additions and 10 deletions

View File

@@ -197,9 +197,7 @@ ali1489_defaults(ali1489_t *dev)
picintc(1 << 10);
picintc(1 << 15);
#ifdef OLD_NMI_BEHAVIOR
nmi = 0;
#endif
smi_line = 0;
in_smm = 0;

View File

@@ -728,10 +728,8 @@ pipc_fmnmi_read(uint16_t addr, void *priv)
if (dev->ac97_regs[0][0x48] & 0x01) {
if (dev->ac97_regs[0][0x48] & 0x04)
smi_line = 0;
#ifdef OLD_NMI_BEHAVIOR
else
nmi = 0;
#endif
}
#endif

View File

@@ -1068,9 +1068,7 @@ vid_in_200(uint16_t addr, void *priv)
case 0x03dd:
ret = vid->crtc_index; /* Read NMI reason */
vid->crtc_index &= 0x1f; /* Reset NMI reason */
#ifdef OLD_NMI_BEHAVIOR
nmi = 0; /* And reset NMI flag */
#endif
return(ret);
case 0x03de:

View File

@@ -306,9 +306,7 @@ es1371_reset(void *p)
es1371_t *dev = (es1371_t *) p;
int i;
#ifdef OLD_NMI_BEHAVIOR
nmi = 0;
#endif
/* Interrupt/Chip Select Control Register, Address 00H
Addressable as byte, word, longword */

View File

@@ -245,9 +245,7 @@ sigma_out(uint16_t addr, uint8_t val, void *p)
sigma->lastport &= 0x7F;
return;
case 0x2DC: /* Reset NMI */
#ifdef OLD_NMI_BEHAVIOR
nmi = 0;
#endif
sigma->lastport &= 0x7F;
return;
case 0x2DD: /* Page in RAM at 0xC1800 */