From a25a17bc62fb00b5b6cb72fb1dad9fd088f60768 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 22 Nov 2023 23:01:11 +0100 Subject: [PATCH] Default PIT to slow on 286 and 386. --- src/machine/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine/machine.c b/src/machine/machine.c index c4ace6b4f..1684f312a 100644 --- a/src/machine/machine.c +++ b/src/machine/machine.c @@ -168,7 +168,7 @@ pit_irq0_timer(int new_out, int old_out) void machine_common_init(UNUSED(const machine_t *model)) { - uint8_t cpu_requires_fast_pit = is486 || (is8086 && (cpu_s->rspeed >= 8000000)); + uint8_t cpu_requires_fast_pit = is486 || (!is286 && is8086 && (cpu_s->rspeed >= 8000000)); /* System devices first. */ pic_init();