More fixed and disabled the wait states selection on 386DX.

This commit is contained in:
OBattler
2025-09-02 16:45:01 +02:00
parent b825aed242
commit c5be7e9261
2 changed files with 6 additions and 6 deletions

View File

@@ -2096,7 +2096,7 @@ const cpu_family_t cpu_families[] = {
.cpu_flags = 0,
.mem_read_cycles = 4,
.mem_write_cycles = 4,
.cache_read_cycles = 3,
.cache_read_cycles = 2,
.cache_write_cycles = 3,
.atclk_div = 3
},
@@ -2113,8 +2113,8 @@ const cpu_family_t cpu_families[] = {
.cpu_flags = 0,
.mem_read_cycles = 6,
.mem_write_cycles = 6,
.cache_read_cycles = 3,
.cache_write_cycles = 3,
.cache_read_cycles = 2,
.cache_write_cycles = 2,
.atclk_div = 4
},
{
@@ -2130,8 +2130,8 @@ const cpu_family_t cpu_families[] = {
.cpu_flags = 0,
.mem_read_cycles = 7,
.mem_write_cycles = 7,
.cache_read_cycles = 3,
.cache_write_cycles = 3,
.cache_read_cycles = 2,
.cache_write_cycles = 2,
.atclk_div = 5
},
{ .name = "", 0 }

View File

@@ -281,7 +281,7 @@ SettingsMachine::on_comboBoxSpeed_currentIndexChanged(int index)
int cpuId = ui->comboBoxSpeed->currentData().toInt();
uint cpuType = cpuFamily->cpus[cpuId].cpu_type;
if ((cpuType >= CPU_286) && (cpuType <= CPU_386DX)) {
if ((cpuType >= CPU_286) && (cpuType < CPU_386DX)) {
ui->comboBoxWaitStates->setEnabled(true);
ui->comboBoxWaitStates->setCurrentIndex(cpu_waitstates);
} else {