From e9c589e7bc8bb3e120d259e3486b39097ad4bdcb Mon Sep 17 00:00:00 2001 From: Panagiotis <58827426+tiseno100@users.noreply.github.com> Date: Wed, 31 Mar 2021 13:52:25 +0300 Subject: [PATCH] SiS 5571 can now configure the ISA bus clock --- src/chipset/sis_5571.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/chipset/sis_5571.c b/src/chipset/sis_5571.c index 6b5c60474..89c095674 100644 --- a/src/chipset/sis_5571.c +++ b/src/chipset/sis_5571.c @@ -394,6 +394,21 @@ pci_isa_bridge_write(int func, int addr, uint8_t val, void *priv) break; case 0x45: + dev->pci_conf_sb[0][addr] = val & 0xec; + switch ((val & 0xc0) >> 6) + { + case 0: + cpu_set_isa_speed(7.159); + break; + case 1: + cpu_set_isa_pci_div(4); + break; + case 2: + cpu_set_isa_pci_div(3); + break; + } + break; + case 0x46: dev->pci_conf_sb[0][addr] = val & 0xec; break;