mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
SPU refactoring
This commit is contained in:
parent
bc94d92cba
commit
5f8cf18a5a
42 changed files with 271 additions and 202 deletions
|
@ -130,11 +130,11 @@ std::shared_ptr<CPUThread> CPUThreadManager::GetThread(u32 id, CPUThreadType typ
|
|||
return res;
|
||||
}
|
||||
|
||||
RawSPUThread* CPUThreadManager::GetRawSPUThread(u32 num)
|
||||
std::shared_ptr<CPUThread> CPUThreadManager::GetRawSPUThread(u32 num)
|
||||
{
|
||||
if (num < sizeof(Memory.RawSPUMem) / sizeof(Memory.RawSPUMem[0]))
|
||||
{
|
||||
return (RawSPUThread*)Memory.RawSPUMem[num];
|
||||
return GetThread(((RawSPUThread*)Memory.RawSPUMem[num])->GetId());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue