mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
cpu_type removed, system_type added
cpu_state -> cpu_flag vm::stack_allocator template improved ppu_cmd type changed to enum, cmd64 type added
This commit is contained in:
parent
009ac37a7d
commit
bdeccd889f
39 changed files with 449 additions and 492 deletions
|
|
@ -93,7 +93,7 @@ s32 sys_semaphore_wait(ppu_thread& ppu, u32 sem_id, u64 timeout)
|
|||
// add waiter; protocol is ignored in current implementation
|
||||
sleep_entry<cpu_thread> waiter(sem->sq, ppu);
|
||||
|
||||
while (!ppu.state.test_and_reset(cpu_state::signal))
|
||||
while (!ppu.state.test_and_reset(cpu_flag::signal))
|
||||
{
|
||||
CHECK_EMU_STATUS;
|
||||
|
||||
|
|
@ -173,7 +173,7 @@ s32 sys_semaphore_post(u32 sem_id, s32 count)
|
|||
count--;
|
||||
|
||||
auto& thread = sem->sq.front();
|
||||
VERIFY(!thread->state.test_and_set(cpu_state::signal));
|
||||
VERIFY(!thread->state.test_and_set(cpu_flag::signal));
|
||||
thread->notify();
|
||||
|
||||
sem->sq.pop_front();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue