mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
More memory cleanup
This commit is contained in:
1 parent
cd052ea640
commit
3bd41376da
43 files changed
+574
-527
No files matched your search
@@ -255,10 +255,10 @@ MIPSOpcode JitBlockCache::GetEmuHackOpForBlock(int blockNum) const {
|
||||
}
|
||||
|
||||
int JitBlockCache::GetBlockNumberFromStartAddress(u32 addr) const {
|
||||
if (!blocks_ || !Memory::IsValidAddress(addr))
|
||||
if (!blocks_ || !Memory::IsValid4AlignedAddress(addr))
|
||||
return -1;
|
||||
|
||||
MIPSOpcode inst = MIPSOpcode(Memory::Read_U32(addr));
|
||||
MIPSOpcode inst = MIPSOpcode(Memory::ReadUnchecked_U32(addr));
|
||||
int bl = GetBlockNumberFromEmuHackOp(inst);
|
||||
if (bl < 0) {
|
||||
return -1;
|
||||
|
||||
Reference in new issue
Block a user