mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
* Update asmjit dependency (aarch64 branch) * Disable USE_DISCORD_RPC by default * Dump some JIT objects in rpcs3 cache dir * Add SIGILL handler for all platforms * Fix resetting zeroing denormals in thread pool * Refactor most v128:: utils into global gv_** functions * Refactor PPU interpreter (incomplete), remove "precise" * - Instruction specializations with multiple accuracy flags * - Adjust calling convention for speed * - Removed precise/fast setting, replaced with static * - Started refactoring interpreters for building at runtime JIT * (I got tired of poor compiler optimizations) * - Expose some accuracy settings (SAT, NJ, VNAN, FPCC) * - Add exec_bytes PPU thread variable (akin to cycle count) * PPU LLVM: fix VCTUXS+VCTSXS instruction NaN results * SPU interpreter: remove "precise" for now (extremely non-portable) * - As with PPU, settings changed to static/dynamic for interpreters. * - Precise options will be implemented later * Fix termination after fatal error dialog
43 lines
855 B
C++
43 lines
855 B
C++
#pragma once
|
|
|
|
#include "SPUOpcodes.h"
|
|
|
|
class spu_thread;
|
|
|
|
using spu_intrp_func_t = bool(*)(spu_thread& spu, spu_opcode_t op);
|
|
|
|
template <typename IT>
|
|
struct spu_interpreter_t;
|
|
|
|
struct spu_interpreter
|
|
{
|
|
static void set_interrupt_status(spu_thread&, spu_opcode_t);
|
|
};
|
|
|
|
struct spu_interpreter_rt_base
|
|
{
|
|
protected:
|
|
std::unique_ptr<spu_interpreter_t<spu_intrp_func_t>> ptrs;
|
|
|
|
spu_interpreter_rt_base() noexcept;
|
|
|
|
spu_interpreter_rt_base(const spu_interpreter_rt_base&) = delete;
|
|
|
|
spu_interpreter_rt_base& operator=(const spu_interpreter_rt_base&) = delete;
|
|
|
|
virtual ~spu_interpreter_rt_base();
|
|
};
|
|
|
|
struct spu_interpreter_rt : spu_interpreter_rt_base
|
|
{
|
|
spu_interpreter_rt() noexcept;
|
|
|
|
spu_intrp_func_t decode(u32 op) const noexcept
|
|
{
|
|
return table.decode(op);
|
|
}
|
|
|
|
private:
|
|
spu_decoder<spu_interpreter_t<spu_intrp_func_t>, spu_intrp_func_t> table;
|
|
};
|