Skip to content

Commit

Permalink
Crashfix in JIT disassembly UI. Add sanity check in WaitUntil
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jan 27, 2024
1 parent 026662b commit a2e7712
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Core/FrameTiming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void WaitUntil(double now, double timestamp) {
}
#else
const double left = timestamp - now;
if (left > 0.0) {
if (left > 0.0 && left < 3.0) {
usleep((long)(left * 1000000));
}
#endif
Expand Down
4 changes: 4 additions & 0 deletions UI/DevScreens.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,10 @@ void JitCompareScreen::UpdateDisasm() {

using namespace UI;

if (!MIPSComp::jit) {
return;
}

JitBlockCacheDebugInterface *blockCacheDebug = MIPSComp::jit->GetBlockCacheDebugInterface();

char temp[256];
Expand Down

0 comments on commit a2e7712

Please sign in to comment.