From 0208c7560f751c53eef24f68edbdc514de483655 Mon Sep 17 00:00:00 2001 From: Alexander Babikov Date: Mon, 26 Apr 2021 04:18:52 +0500 Subject: [PATCH] Fix incorrectly set 7.16 MHz clock speeds on some chipsets --- src/chipset/ali1543.c | 2 +- src/chipset/sis_5511.c | 2 +- src/chipset/sis_5571.c | 2 +- src/chipset/sis_5598.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/chipset/ali1543.c b/src/chipset/ali1543.c index 67b513a94..158d42ba4 100644 --- a/src/chipset/ali1543.c +++ b/src/chipset/ali1543.c @@ -138,7 +138,7 @@ ali1533_write(int func, int addr, uint8_t val, void *priv) switch(val & 7) { case 0: - cpu_set_isa_speed(7.16); + cpu_set_isa_speed(7159091); break; case 1: case 2: diff --git a/src/chipset/sis_5511.c b/src/chipset/sis_5511.c index e9a566d44..673d37ebe 100644 --- a/src/chipset/sis_5511.c +++ b/src/chipset/sis_5511.c @@ -572,7 +572,7 @@ sis_5513_isa_write(uint16_t addr, uint8_t val, void *priv) switch (val >> 6) { case 0: - cpu_set_isa_speed(7.159); + cpu_set_isa_speed(7159091); break; case 1: cpu_set_isa_pci_div(4); diff --git a/src/chipset/sis_5571.c b/src/chipset/sis_5571.c index 93f3911a8..674db6bb5 100644 --- a/src/chipset/sis_5571.c +++ b/src/chipset/sis_5571.c @@ -373,7 +373,7 @@ pci_isa_bridge_write(int func, int addr, uint8_t val, void *priv) switch ((val & 0xc0) >> 6) { case 0: - cpu_set_isa_speed(7.159); + cpu_set_isa_speed(7159091); break; case 1: cpu_set_isa_pci_div(4); diff --git a/src/chipset/sis_5598.c b/src/chipset/sis_5598.c index fd9455bb6..e37074d6f 100644 --- a/src/chipset/sis_5598.c +++ b/src/chipset/sis_5598.c @@ -497,7 +497,7 @@ void sis_5598_pcitoisa_write(int addr, uint8_t val, sis_5598_t *dev) switch ((val & 0xc0) >> 6) { case 0: - cpu_set_isa_speed(7.159); + cpu_set_isa_speed(7159091); break; case 1: cpu_set_isa_pci_div(4);