mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Use unsigned compares in slowmem x86 jit.
This commit is contained in:
parent
d10bdd6938
commit
68aaac25c6
1 changed files with 6 additions and 6 deletions
|
@ -356,9 +356,9 @@ void Jit::WriteExitDestInEAX()
|
|||
if (!g_Config.bFastMemory)
|
||||
{
|
||||
CMP(32, R(EAX), Imm32(PSP_GetKernelMemoryBase()));
|
||||
FixupBranch tooLow = J_CC(CC_L);
|
||||
FixupBranch tooLow = J_CC(CC_B);
|
||||
CMP(32, R(EAX), Imm32(PSP_GetUserMemoryEnd()));
|
||||
FixupBranch tooHigh = J_CC(CC_GE);
|
||||
FixupBranch tooHigh = J_CC(CC_AE);
|
||||
|
||||
// Need to set neg flag again if necessary.
|
||||
SUB(32, M(¤tMIPS->downcount), Imm32(0));
|
||||
|
@ -519,9 +519,9 @@ OpArg Jit::JitSafeMem::PrepareMemoryOpArg(ReadType type)
|
|||
{
|
||||
// Is it in physical ram?
|
||||
jit_->CMP(32, R(xaddr_), Imm32(PSP_GetKernelMemoryBase() - offset_));
|
||||
tooLow_ = jit_->J_CC(CC_L);
|
||||
tooLow_ = jit_->J_CC(CC_B);
|
||||
jit_->CMP(32, R(xaddr_), Imm32(PSP_GetUserMemoryEnd() - offset_ - (size_ - 1)));
|
||||
tooHigh_ = jit_->J_CC(CC_GE);
|
||||
tooHigh_ = jit_->J_CC(CC_AE);
|
||||
|
||||
// We may need to jump back up here.
|
||||
safe_ = jit_->GetCodePtr();
|
||||
|
@ -554,9 +554,9 @@ void Jit::JitSafeMem::PrepareSlowAccess()
|
|||
|
||||
// Might also be the scratchpad.
|
||||
jit_->CMP(32, R(xaddr_), Imm32(PSP_GetScratchpadMemoryBase() - offset_));
|
||||
FixupBranch tooLow = jit_->J_CC(CC_L);
|
||||
FixupBranch tooLow = jit_->J_CC(CC_B);
|
||||
jit_->CMP(32, R(xaddr_), Imm32(PSP_GetScratchpadMemoryEnd() - offset_ - (size_ - 1)));
|
||||
jit_->J_CC(CC_L, safe_);
|
||||
jit_->J_CC(CC_B, safe_);
|
||||
jit_->SetJumpTarget(tooLow);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue