Not only AudioPCI, revert the NMI way where applicable (ali1489, viapipc, amstrad and sigma).

This commit is contained in:
TC1995
2022-07-16 22:04:45 +02:00
parent 1b8e50e4da
commit d630bba26e
4 changed files with 0 additions and 8 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

@@ -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 */