mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
Improve get_current_cpu_thread()
This commit is contained in:
parent
04cac6cd33
commit
638f20c80f
8 changed files with 58 additions and 25 deletions
|
@ -2041,10 +2041,10 @@ void spu_thread::do_dma_transfer(spu_thread* _this, const spu_mfc_cmd& args, u8*
|
|||
continue;
|
||||
}
|
||||
|
||||
const auto cpu = static_cast<spu_thread*>(get_current_cpu_thread());
|
||||
const auto cpu = get_current_cpu_thread<spu_thread>();
|
||||
|
||||
alignas(64) u8 temp[128];
|
||||
u8* dst0 = cpu && cpu->id_type() != 1 && (eal & -128) == cpu->raddr ? temp : dst;
|
||||
u8* dst0 = cpu && (eal & -128) == cpu->raddr ? temp : dst;
|
||||
|
||||
if (dst0 == +temp && time0 != cpu->rtime)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue