Initial softfloat port from Bochs to 86box, currently selectable only on QT.
This commit is contained in:
@@ -105,6 +105,8 @@ SettingsMachine::save()
|
||||
cpu = ui->comboBoxSpeed->currentData().toInt();
|
||||
fpu_type = ui->comboBoxFPU->currentData().toInt();
|
||||
cpu_use_dynarec = ui->checkBoxDynamicRecompiler->isChecked() ? 1 : 0;
|
||||
fpu_softfloat = (ui->checkBoxFPUSoftfloat->isChecked() && !cpu_use_dynarec) ? 1 : 0;
|
||||
|
||||
int64_t temp_mem_size;
|
||||
if (machine_get_ram_granularity(machine) < 1024) {
|
||||
temp_mem_size = ui->spinBoxRAM->value();
|
||||
@@ -270,13 +272,22 @@ SettingsMachine::on_comboBoxSpeed_currentIndexChanged(int index)
|
||||
if (!(flags & CPU_SUPPORTS_DYNAREC)) {
|
||||
ui->checkBoxDynamicRecompiler->setChecked(false);
|
||||
ui->checkBoxDynamicRecompiler->setEnabled(false);
|
||||
ui->checkBoxFPUSoftfloat->setChecked(fpu_softfloat);
|
||||
ui->checkBoxFPUSoftfloat->setEnabled(cpu_use_dynarec ? false : true);
|
||||
} else if (flags & CPU_REQUIRES_DYNAREC) {
|
||||
ui->checkBoxDynamicRecompiler->setChecked(true);
|
||||
ui->checkBoxDynamicRecompiler->setEnabled(false);
|
||||
ui->checkBoxFPUSoftfloat->setChecked(false);
|
||||
ui->checkBoxFPUSoftfloat->setEnabled(false);
|
||||
} else {
|
||||
ui->checkBoxDynamicRecompiler->setChecked(cpu_use_dynarec);
|
||||
ui->checkBoxDynamicRecompiler->setEnabled(true);
|
||||
ui->checkBoxFPUSoftfloat->setChecked(fpu_softfloat);
|
||||
ui->checkBoxFPUSoftfloat->setEnabled(cpu_use_dynarec ? false : true);
|
||||
}
|
||||
#else
|
||||
ui->checkBoxFPUSoftfloat->setChecked(fpu_softfloat);
|
||||
ui->checkBoxFPUSoftfloat->setEnabled(true);
|
||||
#endif
|
||||
|
||||
// win_settings_machine_recalc_fpu
|
||||
|
||||
Reference in New Issue
Block a user