mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 05:30:15 +00:00
compile fix
This commit is contained in:
parent
16df8e5034
commit
6803ceb886
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 New Issue
Block a user