Enable maxinst to 1 only if singlestep exists and is enabled

This commit is contained in:
Paulo Matos committed 2025-03-28 18:09:52 +01:00
1 parent 8058391955
commit 68b5a90518
1 file changed
+1 -1
+1 -1
View File
@@ -420,7 +420,7 @@ void ReloadMetaLayer() {
}
}
if (FEXCore::Config::Exists(FEXCore::Config::CONFIG_SINGLESTEP)) {
if (FEXCore::Config::Exists(FEXCore::Config::CONFIG_SINGLESTEP) && Meta->GetConv<bool>(FEXCore::Config::CONFIG_SINGLESTEP).value_or(false)) {
// Single stepping also enforces single instruction size blocks
Set(FEXCore::Config::ConfigOption::CONFIG_MAXINST, "1");
}