mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
Work on RawSPU: interrupt mailbox
Achievement unlocked: run spu_test!
This commit is contained in:
parent
5a1d702e3d
commit
f9c592098f
15 changed files with 458 additions and 52 deletions
|
@ -108,6 +108,26 @@ CPUThread* CPUThreadManager::GetThread(u32 id)
|
|||
return res;
|
||||
}
|
||||
|
||||
RawSPUThread* CPUThreadManager::GetRawSPUThread(u32 num)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(m_mtx_thread);
|
||||
|
||||
for (u32 i = 0; i < m_threads.size(); i++)
|
||||
{
|
||||
if (m_threads[i]->GetType() == CPU_THREAD_RAW_SPU)
|
||||
{
|
||||
RawSPUThread* t = (RawSPUThread*)m_threads[i];
|
||||
|
||||
if (t->GetIndex() == num)
|
||||
{
|
||||
return t;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void CPUThreadManager::NotifyThread(const u32 id)
|
||||
{
|
||||
if (!id) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue