rpcsx/rpcs3/Emu/Cell/SPUDecoder.h

27 lines
375 B
C
Raw Normal View History

#pragma once
#include "Emu/Cell/SPUOpcodes.h"
#include "Emu/Cell/PPCDecoder.h"
2013-07-04 16:20:36 +02:00
#include "Emu/Cell/SPUInstrtable.h"
class SPU_Decoder : public PPC_Decoder
{
2013-07-04 16:20:36 +02:00
SPU_Opcodes* m_op;
public:
2013-07-04 16:20:36 +02:00
SPU_Decoder(SPU_Opcodes& op) : m_op(&op)
{
}
~SPU_Decoder()
{
2013-07-04 16:20:36 +02:00
m_op->Exit();
delete m_op;
}
virtual void Decode(const u32 code)
{
2013-07-04 16:20:36 +02:00
(*SPU_instr::rrr_list)(m_op, code);
}
};