mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
debugger: Shortend SPU/PPU thread names
This commit is contained in:
parent
e353ad3557
commit
e45d37073a
3 changed files with 7 additions and 7 deletions
|
@ -1518,7 +1518,7 @@ void ppu_load_exec(const ppu_exec_object& elf)
|
||||||
p.stack_addr = vm::cast(vm::alloc(primary_stacksize, vm::stack, 4096));
|
p.stack_addr = vm::cast(vm::alloc(primary_stacksize, vm::stack, 4096));
|
||||||
p.stack_size = primary_stacksize;
|
p.stack_size = primary_stacksize;
|
||||||
|
|
||||||
auto ppu = idm::make_ptr<named_thread<ppu_thread>>("PPU[0x1000000] Thread (main_thread)", p, "main_thread", primary_prio, 1);
|
auto ppu = idm::make_ptr<named_thread<ppu_thread>>("PPU[0x1000000] main_thread ", p, "main_thread", primary_prio, 1);
|
||||||
|
|
||||||
// Write initial data (exitspawn)
|
// Write initial data (exitspawn)
|
||||||
if (!Emu.data.empty())
|
if (!Emu.data.empty())
|
||||||
|
|
|
@ -404,13 +404,13 @@ error_code _sys_ppu_thread_create(vm::ptr<u64> thread_id, vm::ptr<ppu_thread_par
|
||||||
{
|
{
|
||||||
const u32 tid = idm::last_id();
|
const u32 tid = idm::last_id();
|
||||||
|
|
||||||
std::string full_name = fmt::format("PPU[0x%x] Thread", tid);
|
std::string full_name = fmt::format("PPU[0x%x] ", tid);
|
||||||
|
|
||||||
if (threadname)
|
if (threadname)
|
||||||
{
|
{
|
||||||
if (!ppu_name.empty())
|
if (!ppu_name.empty())
|
||||||
{
|
{
|
||||||
fmt::append(full_name, " (%s)", ppu_name);
|
fmt::append(full_name, "%s ", ppu_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -405,11 +405,11 @@ error_code sys_spu_thread_initialize(ppu_thread& ppu, vm::ptr<u32> thread, u32 g
|
||||||
|
|
||||||
verify(HERE), idm::import<named_thread<spu_thread>>([&]()
|
verify(HERE), idm::import<named_thread<spu_thread>>([&]()
|
||||||
{
|
{
|
||||||
std::string full_name = fmt::format("SPU[0x%07x] Thread", tid);
|
std::string full_name = fmt::format("SPU[0x%07x] ", tid);
|
||||||
|
|
||||||
if (!thread_name.empty())
|
if (!thread_name.empty())
|
||||||
{
|
{
|
||||||
fmt::append(full_name, " (%s)", thread_name);
|
fmt::append(full_name, "%s ", thread_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto spu = std::make_shared<named_thread<spu_thread>>(full_name, ls_addr, group.get(), spu_num, thread_name, tid);
|
const auto spu = std::make_shared<named_thread<spu_thread>>(full_name, ls_addr, group.get(), spu_num, thread_name, tid);
|
||||||
|
@ -1833,7 +1833,7 @@ error_code sys_raw_spu_create(ppu_thread& ppu, vm::ptr<u32> id, vm::ptr<void> at
|
||||||
|
|
||||||
const vm::addr_t ls_addr{verify(HERE, vm::falloc(RAW_SPU_BASE_ADDR + RAW_SPU_OFFSET * index, 0x40000, vm::spu))};
|
const vm::addr_t ls_addr{verify(HERE, vm::falloc(RAW_SPU_BASE_ADDR + RAW_SPU_OFFSET * index, 0x40000, vm::spu))};
|
||||||
|
|
||||||
const u32 tid = idm::make<named_thread<spu_thread>>(fmt::format("RawSPU[0x%x] Thread", index), ls_addr, nullptr, index, "", index);
|
const u32 tid = idm::make<named_thread<spu_thread>>(fmt::format("RawSPU[0x%x] ", index), ls_addr, nullptr, index, "", index);
|
||||||
|
|
||||||
spu_thread::g_raw_spu_id[index] = verify("RawSPU ID" HERE, tid);
|
spu_thread::g_raw_spu_id[index] = verify("RawSPU ID" HERE, tid);
|
||||||
|
|
||||||
|
@ -1881,7 +1881,7 @@ error_code sys_isolated_spu_create(ppu_thread& ppu, vm::ptr<u32> id, vm::ptr<voi
|
||||||
|
|
||||||
const vm::addr_t ls_addr{verify(HERE, vm::falloc(RAW_SPU_BASE_ADDR + RAW_SPU_OFFSET * index, 0x40000, vm::spu))};
|
const vm::addr_t ls_addr{verify(HERE, vm::falloc(RAW_SPU_BASE_ADDR + RAW_SPU_OFFSET * index, 0x40000, vm::spu))};
|
||||||
|
|
||||||
const auto thread = idm::make_ptr<named_thread<spu_thread>>(fmt::format("IsoSPU[0x%x] Thread", index), ls_addr, nullptr, index, "", index, true);
|
const auto thread = idm::make_ptr<named_thread<spu_thread>>(fmt::format("IsoSPU[0x%x] ", index), ls_addr, nullptr, index, "", index, true);
|
||||||
|
|
||||||
thread->gpr[3] = v128::from64(0, arg1);
|
thread->gpr[3] = v128::from64(0, arg1);
|
||||||
thread->gpr[4] = v128::from64(0, arg2);
|
thread->gpr[4] = v128::from64(0, arg2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue