Change Cell->RSX map/unmap notifications

This allows for further flexibility on the RSX side, allowing us to fix
some bugs and crashes in later commits.
This commit is contained in:
Rui Pinheiro 2018-09-22 15:45:55 +01:00 committed by kd-11
parent a07cbaca8e
commit f3029b2b42
3 changed files with 33 additions and 14 deletions

View file

@ -1,4 +1,4 @@
#include "stdafx.h"
#include "stdafx.h"
#include "Emu/Memory/vm.h"
#include "Emu/System.h"
#include "Emu/IdManager.h"
@ -1382,6 +1382,7 @@ namespace rsx
}
}
//std::future<void> thread::add_internal_task(std::function<bool()> callback)
//{
// std::lock_guard lock(m_mtx_task);
@ -2673,6 +2674,12 @@ namespace rsx
check_zcull_status(false);
}
void thread::on_notify_memory_mapped(u32 address, u32 size)
{
// TODO
}
void thread::on_notify_memory_unmapped(u32 base_address, u32 size)
{
if (!m_rsx_thread_exiting && base_address < 0xC0000000)