compile fix
This commit is contained in:
parent
16df8e5034
commit
6803ceb886
1 changed files with 1 additions and 3 deletions
4
src/core/arm/cache/cache.cpp
vendored
4
src/core/arm/cache/cache.cpp
vendored
|
@ -87,11 +87,9 @@ void CacheBase::OnCodeLoad(u32 address, u32 size) {
|
|||
}
|
||||
|
||||
void CacheBase::OnCodeUnload(u32 address, u32 size) {
|
||||
const u32 end = address + size;
|
||||
|
||||
ptr_caches.erase(std::remove_if(ptr_caches.begin(), ptr_caches.end(),
|
||||
[&](auto const& cache) {
|
||||
if ((address < cache.addr_end) && (end > cache.addr)) {
|
||||
if ((address < cache.addr_end) && (address + size > cache.addr)) {
|
||||
RemoveRange(cache.addr, cache.addr_end);
|
||||
for (u32 i = cache.addr; i < cache.addr_end; i += Memory::PAGE_SIZE) { page_pointers[i >> Memory::PAGE_BITS] = nullptr; }
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue