mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
26 lines
474 B
C++
26 lines
474 B
C++
#pragma once
|
|
|
|
#include "SPUAnalyser.h"
|
|
|
|
#include <mutex>
|
|
|
|
// SPU Recompiler instance base (must be global or PS3 process-local)
|
|
class spu_recompiler_base
|
|
{
|
|
protected:
|
|
std::mutex m_mutex; // must be locked in compile()
|
|
|
|
const spu_function_t* m_func; // current function
|
|
|
|
u32 m_pos; // current position
|
|
|
|
public:
|
|
virtual ~spu_recompiler_base();
|
|
|
|
// Compile specified function
|
|
virtual void compile(spu_function_t& f) = 0;
|
|
|
|
// Run
|
|
static void enter(class SPUThread&);
|
|
};
|