svc: Fix instruction cache invalidation only affecting current core (#2100)

This commit is contained in:
PabloMK7 2026-05-09 14:03:55 +02:00 committed by GitHub
parent bf59d26c48
commit 1c7c7a5f1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2055,12 +2055,16 @@ Result SVC::GetProcessList(s32* process_count, VAddr out_process_array,
} }
Result SVC::InvalidateInstructionCacheRange(u32 addr, u32 size) { Result SVC::InvalidateInstructionCacheRange(u32 addr, u32 size) {
system.GetRunningCore().InvalidateCacheRange(addr, size); for (size_t i = 0; i < system.GetNumCores(); i++) {
system.GetCore(i).InvalidateCacheRange(addr, size);
}
return ResultSuccess; return ResultSuccess;
} }
Result SVC::InvalidateEntireInstructionCache() { Result SVC::InvalidateEntireInstructionCache() {
system.GetRunningCore().ClearInstructionCache(); for (size_t i = 0; i < system.GetNumCores(); i++) {
system.GetCore(i).ClearInstructionCache();
}
return ResultSuccess; return ResultSuccess;
} }