mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 10:48:36 +12:00
26 lines
375 B
C++
26 lines
375 B
C++
#pragma once
|
|
|
|
#include "Emu/Cell/SPUOpcodes.h"
|
|
#include "Emu/Cell/PPCDecoder.h"
|
|
#include "Emu/Cell/SPUInstrtable.h"
|
|
|
|
class SPU_Decoder : public PPC_Decoder
|
|
{
|
|
SPU_Opcodes* m_op;
|
|
|
|
public:
|
|
SPU_Decoder(SPU_Opcodes& op) : m_op(&op)
|
|
{
|
|
}
|
|
|
|
~SPU_Decoder()
|
|
{
|
|
m_op->Exit();
|
|
delete m_op;
|
|
}
|
|
|
|
virtual void Decode(const u32 code)
|
|
{
|
|
(*SPU_instr::rrr_list)(m_op, code);
|
|
}
|
|
};
|