mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 01:08:39 +12:00
Fix cellVdecOpen
Use pseudo-address in sys_ppu_thread_create calls
This commit is contained in:
parent
c34821ded2
commit
f40320bcae
2 changed files with 2 additions and 2 deletions
|
@ -443,7 +443,7 @@ s32 _cellGcmInitBody(ppu_thread& ppu, vm::pptr<CellGcmContextData> context, u32
|
||||||
|
|
||||||
vm::var<u64> _tid;
|
vm::var<u64> _tid;
|
||||||
vm::var<char[]> _name = vm::make_str("_gcm_intr_thread");
|
vm::var<char[]> _name = vm::make_str("_gcm_intr_thread");
|
||||||
ppu_execute<&sys_ppu_thread_create>(ppu, +_tid, 128, 0, 1, 0x4000, SYS_PPU_THREAD_CREATE_INTERRUPT, +_name);
|
ppu_execute<&sys_ppu_thread_create>(ppu, +_tid, 0x10000, 0, 1, 0x4000, SYS_PPU_THREAD_CREATE_INTERRUPT, +_name);
|
||||||
render->intr_thread = idm::get<named_thread<ppu_thread>>(*_tid);
|
render->intr_thread = idm::get<named_thread<ppu_thread>>(*_tid);
|
||||||
render->intr_thread->state -= cpu_flag::stop;
|
render->intr_thread->state -= cpu_flag::stop;
|
||||||
render->main_mem_addr = 0;
|
render->main_mem_addr = 0;
|
||||||
|
|
|
@ -453,7 +453,7 @@ static s32 vdecOpen(ppu_thread& ppu, T type, U res, vm::cptr<CellVdecCb> cb, vm:
|
||||||
// Run thread
|
// Run thread
|
||||||
vm::var<u64> _tid;
|
vm::var<u64> _tid;
|
||||||
vm::var<char[]> _name = vm::make_str("HLE Video Decoder");
|
vm::var<char[]> _name = vm::make_str("HLE Video Decoder");
|
||||||
ppu_execute<&sys_ppu_thread_create>(ppu, +_tid, 0, vid, +res->ppuThreadPriority, +res->ppuThreadStackSize, SYS_PPU_THREAD_CREATE_INTERRUPT, +_name);
|
ppu_execute<&sys_ppu_thread_create>(ppu, +_tid, 0x10000, vid, +res->ppuThreadPriority, +res->ppuThreadStackSize, SYS_PPU_THREAD_CREATE_INTERRUPT, +_name);
|
||||||
*handle = vid;
|
*handle = vid;
|
||||||
|
|
||||||
const auto thrd = idm::get<named_thread<ppu_thread>>(*_tid);
|
const auto thrd = idm::get<named_thread<ppu_thread>>(*_tid);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue