fix compiling without JIT

This commit is contained in:
Nadia Holmquist Pedersen 2024-11-19 00:34:16 +01:00
parent 317b91533b
commit c4f7c1bff7
2 changed files with 7 additions and 2 deletions

View File

@ -536,9 +536,14 @@ void EmuSettingsDialog::on_btnDSiSDFolderBrowse_clicked()
void EmuSettingsDialog::on_chkEnableJIT_toggled() void EmuSettingsDialog::on_chkEnableJIT_toggled()
{ {
bool disabled = !ui->chkEnableJIT->isChecked(); bool disabled = !ui->chkEnableJIT->isChecked();
#ifdef JIT_ENABLED
bool fastmemSupported = ARMJIT_Memory::IsFastMemSupported();
#else
bool fastmemSupported = false;
#endif
ui->chkJITBranchOptimisations->setDisabled(disabled); ui->chkJITBranchOptimisations->setDisabled(disabled);
ui->chkJITLiteralOptimisations->setDisabled(disabled); ui->chkJITLiteralOptimisations->setDisabled(disabled);
ui->chkJITFastMemory->setDisabled(disabled || !ARMJIT_Memory::IsFastMemSupported()); ui->chkJITFastMemory->setDisabled(disabled || !fastmemSupported);
ui->spnJITMaximumBlockSize->setDisabled(disabled); ui->spnJITMaximumBlockSize->setDisabled(disabled);
on_cbGdbEnabled_toggled(); on_cbGdbEnabled_toggled();

View File

@ -857,7 +857,7 @@ void MainWindow::createScreenPanel()
// Check that creating the context hasn't failed // Check that creating the context hasn't failed
if (panelGL->createContext() == false) if (panelGL->createContext() == false)
{ {
Log(LogLevel::Error, "Failed to create OpenGL context, falling back to Software Renderer.\n"); Log(Platform::LogLevel::Error, "Failed to create OpenGL context, falling back to Software Renderer.\n");
hasOGL = false; hasOGL = false;
globalCfg.SetBool("Screen.UseGL", false); globalCfg.SetBool("Screen.UseGL", false);