ALi M1489 and a CPU fix.

This commit is contained in:
OBattler
2022-07-16 02:47:39 +02:00
parent da5d451386
commit 2c9bfa979f
3 changed files with 6 additions and 3 deletions

View File

@@ -319,7 +319,7 @@ ali1489_write(uint16_t addr, uint8_t val, void *priv)
smi_line = 1; smi_line = 1;
break; break;
case 0x10: case 0x10:
nmi = 1; nmi_raise();
break; break;
case 0x20: case 0x20:
picint(1 << 15); picint(1 << 15);

View File

@@ -1838,7 +1838,7 @@ sysret(uint32_t fetchdat)
void void
raise_smi(void) smi_raise(void)
{ {
if (is486 && (cpu_fast_off_flags & 0x80000000)) if (is486 && (cpu_fast_off_flags & 0x80000000))
cpu_fast_off_count = cpu_fast_off_val + 1; cpu_fast_off_count = cpu_fast_off_val + 1;
@@ -1848,7 +1848,7 @@ raise_smi(void)
void void
raise_nmi(void) nmi_raise(void)
{ {
if (is486 && (cpu_fast_off_flags & 0x20000000)) if (is486 && (cpu_fast_off_flags & 0x20000000))
cpu_fast_off_count = cpu_fast_off_val + 1; cpu_fast_off_count = cpu_fast_off_val + 1;

View File

@@ -733,4 +733,7 @@ extern uint8_t do_translate, do_translate2;
extern void reset_808x(int hard); extern void reset_808x(int hard);
extern void smi_raise();
extern void nmi_raise();
#endif /*EMU_CPU_H*/ #endif /*EMU_CPU_H*/