sys_spu: Fix SPU Thread Id

* Removed wrong code in sys_spu_thread_group_terminate.
* SPU Thread ID is accurate, including 5th thread id "rule".
* Fixed possible use-after-free access of spu_thread::group member.
* RawSPU ID management simplified.
This commit is contained in:
Eladash 2019-11-03 01:44:02 +02:00 committed by Ivan
parent e050dcbc52
commit 5631382623
7 changed files with 122 additions and 120 deletions

View file

@ -281,7 +281,7 @@ void kernel_explorer::Update()
idm::select<named_thread<spu_thread>>([&](u32 id, spu_thread& spu)
{
lv2_types.back().count++;
l_addTreeChild(lv2_types.back().node, qstr(fmt::format("SPU Thread: ID = 0x%08x '%s'", id, spu.spu_name.get())));
l_addTreeChild(lv2_types.back().node, qstr(fmt::format("SPU Thread: ID = 0x%08x '%s'", spu.lv2_id, spu.spu_name.get())));
});
lv2_types.emplace_back(l_addTreeChild(root, "SPU Thread Groups"));