Skip to content

Commit

Permalink
Revise dynamic core CPP exception test not to refer to cores that are…
Browse files Browse the repository at this point in the history
… not compiled in. Such as, the X86 dynamic core on an arm64 Macbook
  • Loading branch information
joncampbell123 committed Dec 30, 2024
1 parent f20142a commit fb11ee5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/cpu/cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3213,7 +3213,15 @@ void CPU_SetResetSignal(int x) {
}

bool CPU_DynamicCoreCannotUseCPPExceptions(void) {
return (cpudecoder == &CPU_Core_Dyn_X86_Run || cpudecoder == &CPU_Core_Dynrec_Run);
#if C_DYNAMIC_X86
if (cpudecoder == &CPU_Core_Dyn_X86_Run)
return true;
#endif
#if C_DYNREC
if (cpudecoder == &CPU_Core_Dynrec_Run)
return true;
#endif
return false;
}

Bits HLT_Decode(void) {
Expand Down

0 comments on commit fb11ee5

Please sign in to comment.