mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 00:32:48 +01:00
arm_nce: skip dc cvac on possibly write-protected areas
This commit is contained in:
parent
6de2edcca1
commit
263b7a44f9
1 changed files with 1 additions and 3 deletions
|
@ -377,9 +377,7 @@ void ARM_NCE::ClearInstructionCache() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ARM_NCE::InvalidateCacheRange(u64 addr, std::size_t size) {
|
void ARM_NCE::InvalidateCacheRange(u64 addr, std::size_t size) {
|
||||||
// Clean cache.
|
this->ClearInstructionCache();
|
||||||
auto* ptr = reinterpret_cast<char*>(addr);
|
|
||||||
__builtin___clear_cache(ptr, ptr + size);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ARM_NCE::ClearExclusiveState() {
|
void ARM_NCE::ClearExclusiveState() {
|
||||||
|
|
Loading…
Reference in a new issue