"Merge Tagged PR 13018"

This commit is contained in:
yuzubot 2024-03-03 13:02:50 +00:00
parent c59f7ce764
commit 7ffac53c9e
63 changed files with 2079 additions and 587 deletions

View file

@ -49,8 +49,7 @@ struct Memory::Impl {
void SetCurrentPageTable(Kernel::KProcess& process) {
current_page_table = &process.GetPageTable().GetImpl();
if (std::addressof(process) == system.ApplicationProcess() &&
Settings::IsFastmemEnabled()) {
if (process.IsApplication() && Settings::IsFastmemEnabled()) {
current_page_table->fastmem_arena = system.DeviceMemory().buffer.VirtualBasePointer();
} else {
current_page_table->fastmem_arena = nullptr;