mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Workaround a shutdown crash by adding a sanity check .. which actually catches stuff. A bit worrying.
This commit is contained in:
1 parent
69012fc5e0
commit
6e49341b91
3 files changed
+9
-3
No files matched your search
@@ -60,7 +60,7 @@ op_agent_t agent;
|
||||
const u32 INVALID_EXIT = 0xFFFFFFFF;
|
||||
|
||||
JitBlockCache::JitBlockCache(MIPSState *mips, CodeBlockCommon *codeBlock) :
|
||||
mips_(mips), codeBlock_(codeBlock), blocks_(0), num_blocks_(0) {
|
||||
codeBlock_(codeBlock), blocks_(0), num_blocks_(0) {
|
||||
}
|
||||
|
||||
JitBlockCache::~JitBlockCache() {
|
||||
@@ -534,7 +534,11 @@ void JitBlockCache::DestroyBlock(int block_num, bool invalidate) {
|
||||
return;
|
||||
}
|
||||
|
||||
MIPSComp::jit->UnlinkBlock(b->checkedEntry, b->originalAddress);
|
||||
if (b->checkedEntry) {
|
||||
MIPSComp::jit->UnlinkBlock(b->checkedEntry, b->originalAddress);
|
||||
} else {
|
||||
ERROR_LOG(JIT, "Unlinking block with no entry: %08x (%d)", b->originalAddress, block_num);
|
||||
}
|
||||
}
|
||||
|
||||
void JitBlockCache::InvalidateICache(u32 address, const u32 length) {
|
||||
|
||||
Reference in new issue
Block a user