mirror of
https://github.com/libretro/ppsspp.git
synced 2025-03-05 15:07:17 +00:00
Fix memcheck range intersect check.
This commit is contained in:
parent
b0ee3a173a
commit
77670876cd
@ -248,7 +248,7 @@ MemCheck *CBreakPoints::GetMemCheck(u32 address, int size)
|
||||
MemCheck &check = *iter;
|
||||
if (check.end != 0)
|
||||
{
|
||||
if (address + size >= check.start && address < check.end)
|
||||
if (address + size > check.start && address < check.end)
|
||||
return ✓
|
||||
}
|
||||
else
|
||||
|
@ -788,7 +788,7 @@ void Jit::JitSafeMem::MemCheckAsm(ReadType type)
|
||||
if (it->end != 0)
|
||||
{
|
||||
jit_->CMP(32, R(xaddr_), Imm32(it->start - offset_ - size_));
|
||||
skipNext = jit_->J_CC(CC_B);
|
||||
skipNext = jit_->J_CC(CC_BE);
|
||||
jit_->CMP(32, R(xaddr_), Imm32(it->end - offset_));
|
||||
skipNextRange = jit_->J_CC(CC_AE);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user