Fix incorrectly set 7.16 MHz clock speeds on some chipsets

This commit is contained in:
Alexander Babikov
2021-04-26 04:18:52 +05:00
parent 92f05439e2
commit 0208c7560f
4 changed files with 4 additions and 4 deletions

View File

@@ -138,7 +138,7 @@ ali1533_write(int func, int addr, uint8_t val, void *priv)
switch(val & 7) switch(val & 7)
{ {
case 0: case 0:
cpu_set_isa_speed(7.16); cpu_set_isa_speed(7159091);
break; break;
case 1: case 1:
case 2: case 2:

View File

@@ -572,7 +572,7 @@ sis_5513_isa_write(uint16_t addr, uint8_t val, void *priv)
switch (val >> 6) switch (val >> 6)
{ {
case 0: case 0:
cpu_set_isa_speed(7.159); cpu_set_isa_speed(7159091);
break; break;
case 1: case 1:
cpu_set_isa_pci_div(4); cpu_set_isa_pci_div(4);

View File

@@ -373,7 +373,7 @@ pci_isa_bridge_write(int func, int addr, uint8_t val, void *priv)
switch ((val & 0xc0) >> 6) switch ((val & 0xc0) >> 6)
{ {
case 0: case 0:
cpu_set_isa_speed(7.159); cpu_set_isa_speed(7159091);
break; break;
case 1: case 1:
cpu_set_isa_pci_div(4); cpu_set_isa_pci_div(4);

View File

@@ -497,7 +497,7 @@ void sis_5598_pcitoisa_write(int addr, uint8_t val, sis_5598_t *dev)
switch ((val & 0xc0) >> 6) switch ((val & 0xc0) >> 6)
{ {
case 0: case 0:
cpu_set_isa_speed(7.159); cpu_set_isa_speed(7159091);
break; break;
case 1: case 1:
cpu_set_isa_pci_div(4); cpu_set_isa_pci_div(4);