Skip to content

Commit

Permalink
Fix broken JIT::SetExceptionBase()
Browse files Browse the repository at this point in the history
  • Loading branch information
fleroviux committed Apr 27, 2024
1 parent 3ac20fd commit a0381ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ struct JIT final : CPU {
}

void SetExceptionBase(u32 new_exception_base) override {
if (new_exception_base != exception_base) {
if (new_exception_base != this->exception_base) {
// this is expected to happen rarely, so we just invalidate all blocks that may cause an exception.
while (!exception_causing_basic_blocks.empty()) {
block_cache.Set(exception_causing_basic_blocks.front()->key, nullptr);
}

translator.SetExceptionBase(new_exception_base);
this->exception_base = new_exception_base;
}
}

Expand Down

0 comments on commit a0381ba

Please sign in to comment.