VS2015: Fix CPU reset code NOT to do restart_program hack even in dynamic core. In Windows, seems to work reliably so far. C++ exceptions seem to work with dynamic core so far in Windows 32-bit.

This commit is contained in:
Jonathan Campbell 2018-02-19 09:12:40 -08:00
parent 2e6ec36513
commit e8a69b57f1

View File

@ -1295,16 +1295,6 @@ void On_Software_CPU_Reset() {
return;
};
#if C_DYNAMIC_X86
/* this technique is NOT reliable when running the dynamic core! */
if (cpudecoder == &CPU_Core_Dyn_X86_Run) {
LOG_MSG("Using traditional DOSBox re-exec, C++ exception method is not compatible with dynamic core\n");
control->startup_params.insert(control->startup_params.begin(),control->cmdline->GetFileName());
restart_program(control->startup_params);
return;
}
#endif
throw int(3);
/* does not return */
}