mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
jit: Consistently check range on invalidate.
We did this on x86, we should do it everywhere or nowhere.
This commit is contained in:
1 parent
c4bf2cb5c0
commit
fa5f9d5e74
4 files changed
+15
-10
No files matched your search
@@ -182,9 +182,10 @@ void ArmJit::ClearCache()
|
||||
GenerateFixedCode();
|
||||
}
|
||||
|
||||
void ArmJit::InvalidateCacheAt(u32 em_address, int length)
|
||||
{
|
||||
blocks.InvalidateICache(em_address, length);
|
||||
void ArmJit::InvalidateCacheAt(u32 em_address, int length) {
|
||||
if (blocks.RangeMayHaveEmuHacks(em_address, em_address + length)) {
|
||||
blocks.InvalidateICache(em_address, length);
|
||||
}
|
||||
}
|
||||
|
||||
void ArmJit::EatInstruction(MIPSOpcode op) {
|
||||
|
||||
@@ -180,7 +180,9 @@ void Arm64Jit::ClearCache() {
|
||||
}
|
||||
|
||||
void Arm64Jit::InvalidateCacheAt(u32 em_address, int length) {
|
||||
blocks.InvalidateICache(em_address, length);
|
||||
if (blocks.RangeMayHaveEmuHacks(em_address, em_address + length)) {
|
||||
blocks.InvalidateICache(em_address, length);
|
||||
}
|
||||
}
|
||||
|
||||
void Arm64Jit::EatInstruction(MIPSOpcode op) {
|
||||
|
||||
@@ -97,9 +97,10 @@ void MipsJit::ClearCache()
|
||||
//GenerateFixedCode();
|
||||
}
|
||||
|
||||
void MipsJit::InvalidateCacheAt(u32 em_address, int length)
|
||||
{
|
||||
blocks.InvalidateICache(em_address, length);
|
||||
void MipsJit::InvalidateCacheAt(u32 em_address, int length) {
|
||||
if (blocks.RangeMayHaveEmuHacks(em_address, em_address + length)) {
|
||||
blocks.InvalidateICache(em_address, length);
|
||||
}
|
||||
}
|
||||
|
||||
void MipsJit::EatInstruction(MIPSOpcode op) {
|
||||
|
||||
@@ -98,9 +98,10 @@ void FakeJit::ClearCache()
|
||||
//GenerateFixedCode();
|
||||
}
|
||||
|
||||
void FakeJit::InvalidateCacheAt(u32 em_address, int length)
|
||||
{
|
||||
blocks.InvalidateICache(em_address, length);
|
||||
void FakeJit::InvalidateCacheAt(u32 em_address, int length) {
|
||||
if (blocks.RangeMayHaveEmuHacks(em_address, em_address + length)) {
|
||||
blocks.InvalidateICache(em_address, length);
|
||||
}
|
||||
}
|
||||
|
||||
void FakeJit::EatInstruction(MIPSOpcode op) {
|
||||
|
||||
Reference in new issue
Block a user