2012-11-15 00:39:56 +01:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "PPCThread.h"
|
2014-08-22 18:36:27 +02:00
|
|
|
#include "Emu/Memory/Memory.h"
|
2012-11-15 00:39:56 +01:00
|
|
|
|
2013-06-30 10:46:29 +02:00
|
|
|
PPCThread* GetCurrentPPCThread()
|
|
|
|
|
{
|
2013-11-03 20:23:16 +01:00
|
|
|
CPUThread* thread = GetCurrentCPUThread();
|
|
|
|
|
|
|
|
|
|
if(!thread || (thread->GetType() != CPU_THREAD_PPU && thread->GetType() != CPU_THREAD_SPU && thread->GetType() != CPU_THREAD_RAW_SPU))
|
|
|
|
|
{
|
2014-04-01 02:33:55 +02:00
|
|
|
throw std::string("GetCurrentPPCThread: bad thread");
|
2013-11-03 20:23:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (PPCThread*)thread;
|
2013-06-30 10:46:29 +02:00
|
|
|
}
|
|
|
|
|
|
2013-11-05 19:12:18 +01:00
|
|
|
PPCThread::PPCThread(CPUThreadType type) : CPUThread(type)
|
2012-11-15 00:39:56 +01:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PPCThread::~PPCThread()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2013-11-03 20:23:16 +01:00
|
|
|
void PPCThread::DoReset()
|
2012-11-15 00:39:56 +01:00
|
|
|
{
|
|
|
|
|
}
|