|
|
|
@ -182,9 +182,6 @@ T MemorySystem::Read(const VAddr vaddr) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// The memory access might do an MMIO or cached access, so we have to lock the HLE kernel state
|
|
|
|
|
std::lock_guard<std::recursive_mutex> lock(HLE::g_hle_lock);
|
|
|
|
|
|
|
|
|
|
PageType type = impl->current_page_table->attributes[vaddr >> PAGE_BITS];
|
|
|
|
|
switch (type) {
|
|
|
|
|
case PageType::Unmapped:
|
|
|
|
@ -219,9 +216,6 @@ void MemorySystem::Write(const VAddr vaddr, const T data) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// The memory access might do an MMIO or cached access, so we have to lock the HLE kernel state
|
|
|
|
|
std::lock_guard<std::recursive_mutex> lock(HLE::g_hle_lock);
|
|
|
|
|
|
|
|
|
|
PageType type = impl->current_page_table->attributes[vaddr >> PAGE_BITS];
|
|
|
|
|
switch (type) {
|
|
|
|
|
case PageType::Unmapped:
|
|
|
|
|