mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04:00
svc: Fix instruction cache invalidation only affecting current core (#2100)
This commit is contained in:
parent
bf59d26c48
commit
1c7c7a5f1b
1 changed files with 6 additions and 2 deletions
|
|
@ -2055,12 +2055,16 @@ Result SVC::GetProcessList(s32* process_count, VAddr out_process_array,
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Result SVC::InvalidateEntireInstructionCache() {
|
||||
system.GetRunningCore().ClearInstructionCache();
|
||||
for (size_t i = 0; i < system.GetNumCores(); i++) {
|
||||
system.GetCore(i).ClearInstructionCache();
|
||||
}
|
||||
return ResultSuccess;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue