mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 15:45:42 +00:00
Bus: Don't reserve entire fastmem region on Android
This commit is contained in:
parent
88618bde1c
commit
6868ad4326
|
@ -382,6 +382,8 @@ void UpdateFastmemViews(CPUFastmemMode mode)
|
|||
};
|
||||
|
||||
auto ReserveRegion = [](u32 start_address, u32 end_address_inclusive) {
|
||||
// We don't reserve memory regions on Android because the app could be subject to address space size limitations.
|
||||
#ifndef __ANDROID__
|
||||
Assert(end_address_inclusive >= start_address);
|
||||
u8* map_address = m_fastmem_base + start_address;
|
||||
auto view = m_memory_arena.CreateReservedView(end_address_inclusive - start_address + 1, map_address);
|
||||
|
@ -392,6 +394,7 @@ void UpdateFastmemViews(CPUFastmemMode mode)
|
|||
}
|
||||
|
||||
m_fastmem_reserved_views.push_back(std::move(view.value()));
|
||||
#endif
|
||||
};
|
||||
|
||||
// KUSEG - cached
|
||||
|
|
Loading…
Reference in a new issue