mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
event_queue_t, event_port_t rewritten
This commit is contained in:
parent
78c37ff8b6
commit
ad38e9f0fe
22 changed files with 386 additions and 584 deletions
|
@ -2,11 +2,11 @@
|
|||
#include "Emu/Cell/Common.h"
|
||||
#include "Emu/CPU/CPUThread.h"
|
||||
#include "Emu/Cell/SPUContext.h"
|
||||
#include "Emu/SysCalls/lv2/sleep_queue.h"
|
||||
#include "Emu/SysCalls/lv2/sys_event.h"
|
||||
#include "Emu/Event.h"
|
||||
#include "MFC.h"
|
||||
|
||||
struct event_queue_t;
|
||||
struct event_port_t;
|
||||
|
||||
// SPU Channels
|
||||
enum : u32
|
||||
{
|
||||
|
@ -507,6 +507,9 @@ public:
|
|||
|
||||
u32 tg_id; // SPU Thread Group Id
|
||||
|
||||
std::unordered_map<u32, std::shared_ptr<event_queue_t>> spuq; // Event Queue Keys for SPU Thread
|
||||
std::weak_ptr<event_queue_t> spup[64]; // SPU Ports
|
||||
|
||||
void write_snr(bool number, u32 value)
|
||||
{
|
||||
if (!number)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue