mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
threads: replace magic number id_type with thread_class
This commit is contained in:
parent
aff2588cce
commit
dfee5b9a6c
18 changed files with 260 additions and 167 deletions
|
|
@ -705,12 +705,12 @@ namespace vm
|
|||
{
|
||||
const auto _cpu = get_current_cpu_thread();
|
||||
|
||||
if (_cpu && _cpu->id_type() == 1)
|
||||
if (_cpu && _cpu->get_class() == thread_class::ppu)
|
||||
{
|
||||
// TODO: PPU g_escape
|
||||
}
|
||||
|
||||
if (_cpu && _cpu->id_type() == 2)
|
||||
if (_cpu && _cpu->get_class() == thread_class::spu)
|
||||
{
|
||||
spu_runtime::g_escape(static_cast<spu_thread*>(_cpu));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue