mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
armjit: VRAM comes before RAM, fix slowmem check.
Can't think of anything else, hopefully fixes #1021.
This commit is contained in:
parent
6aa346c540
commit
796d2c10c6
1 changed files with 7 additions and 7 deletions
|
@ -101,13 +101,6 @@ namespace MIPSComp
|
|||
BIC(tempReg, tempReg, BIT_SCRATCH);
|
||||
|
||||
// If it was in that range, later compares don't matter.
|
||||
CMP(R0, AssumeMakeOperand2(PSP_GetKernelMemoryBase()));
|
||||
SetCC(CC_LO);
|
||||
BIC(tempReg, tempReg, BIT_RAM);
|
||||
SetCC(CC_HS);
|
||||
CMP(R0, AssumeMakeOperand2(PSP_GetUserMemoryEnd()));
|
||||
BIC(tempReg, tempReg, BIT_RAM);
|
||||
|
||||
CMP(R0, AssumeMakeOperand2(PSP_GetVidMemBase()));
|
||||
SetCC(CC_LO);
|
||||
BIC(tempReg, tempReg, BIT_VRAM);
|
||||
|
@ -115,6 +108,13 @@ namespace MIPSComp
|
|||
CMP(R0, AssumeMakeOperand2(PSP_GetVidMemEnd()));
|
||||
BIC(tempReg, tempReg, BIT_VRAM);
|
||||
|
||||
CMP(R0, AssumeMakeOperand2(PSP_GetKernelMemoryBase()));
|
||||
SetCC(CC_LO);
|
||||
BIC(tempReg, tempReg, BIT_RAM);
|
||||
SetCC(CC_HS);
|
||||
CMP(R0, AssumeMakeOperand2(PSP_GetUserMemoryEnd()));
|
||||
BIC(tempReg, tempReg, BIT_RAM);
|
||||
|
||||
// If we left any bit set, the address is OK.
|
||||
SetCC(CC_AL);
|
||||
CMP(tempReg, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue