diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index b048e863fe..2c569355a9 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -53,7 +53,9 @@ void KernelSystem::SetCurrentProcess(std::shared_ptr process) { void KernelSystem::SetCurrentMemPageTable(Memory::PageTable* page_table) { memory.SetCurrentPageTable(page_table); - current_cpu->PageTableChanged(); // notify the CPU the page table in memory has changed + if (current_cpu != nullptr) { + current_cpu->PageTableChanged(); // notify the CPU the page table in memory has changed + } } void KernelSystem::SetCPU(std::shared_ptr cpu) {