sys_spu...

This commit is contained in:
Nekotekina 2017-02-05 02:26:57 +03:00
parent 68f0393cf3
commit ec943b38a2
4 changed files with 261 additions and 362 deletions

View file

@ -505,7 +505,7 @@ public:
static const u32 id_step = 1;
static const u32 id_count = 2048;
SPUThread(const std::string& name, u32 index);
SPUThread(const std::string& name, u32 index, lv2_spu_group* group);
std::array<v128, 128> gpr; // General-Purpose Registers
SPU_FPSCR fpscr;
@ -544,14 +544,13 @@ public:
std::array<spu_int_ctrl_t, 3> int_ctrl; // SPU Class 0, 1, 2 Interrupt Management
std::weak_ptr<lv2_spu_group> tg; // SPU Thread Group
std::array<std::pair<u32, std::weak_ptr<lv2_event_queue>>, 32> spuq; // Event Queue Keys for SPU Thread
std::weak_ptr<lv2_event_queue> spup[64]; // SPU Ports
u32 pc = 0; //
const u32 index; // SPU index
const u32 offset; // SPU LS offset
lv2_spu_group* const group; // SPU Thread Group
const std::string m_name; // Thread name