rpcsx/rpcs3/Emu/Cell/PPCThread.h
DH 0b35be32a4 - Implemented ARM9Thread.
- Improved OpenGL Renderer.
- Improved RAW SPU mfc.
2013-11-03 21:23:16 +02:00

38 lines
715 B
C++

#pragma once
#include "Emu/Memory/MemoryBlock.h"
#include "Emu/CPU/CPUThread.h"
#include "Emu/Cell/PPCDecoder.h"
class PPCThread : public CPUThread
{
protected:
PPCDecoder* m_dec;
u64 m_args[4];
Array<u64> m_argv_addr;
public:
virtual void InitRegs()=0;
virtual void InitStack();
virtual void SetArg(const uint pos, const u64 arg) { assert(pos < 4); m_args[pos] = arg; }
virtual wxString GetThreadName() const
{
return GetFName() + wxString::Format("[0x%08llx]", PC);
}
protected:
PPCThread(CPUThreadType type);
public:
~PPCThread();
virtual void SetPc(const u64 pc) override;
void SetError(const u32 error);
protected:
virtual void DoReset() override;
};
PPCThread* GetCurrentPPCThread();