From e45d37073ae63c5d20cb7dcfc9c53af077aa5935 Mon Sep 17 00:00:00 2001 From: Eladash Date: Tue, 23 Jun 2020 19:20:35 +0300 Subject: [PATCH] debugger: Shortend SPU/PPU thread names --- rpcs3/Emu/Cell/PPUModule.cpp | 2 +- rpcs3/Emu/Cell/lv2/sys_ppu_thread.cpp | 4 ++-- rpcs3/Emu/Cell/lv2/sys_spu.cpp | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUModule.cpp b/rpcs3/Emu/Cell/PPUModule.cpp index 30b4335f11..f46e8b4888 100644 --- a/rpcs3/Emu/Cell/PPUModule.cpp +++ b/rpcs3/Emu/Cell/PPUModule.cpp @@ -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_size = primary_stacksize; - auto ppu = idm::make_ptr>("PPU[0x1000000] Thread (main_thread)", p, "main_thread", primary_prio, 1); + auto ppu = idm::make_ptr>("PPU[0x1000000] main_thread ", p, "main_thread", primary_prio, 1); // Write initial data (exitspawn) if (!Emu.data.empty()) diff --git a/rpcs3/Emu/Cell/lv2/sys_ppu_thread.cpp b/rpcs3/Emu/Cell/lv2/sys_ppu_thread.cpp index bf10615aba..2496a0e0f7 100644 --- a/rpcs3/Emu/Cell/lv2/sys_ppu_thread.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_ppu_thread.cpp @@ -404,13 +404,13 @@ error_code _sys_ppu_thread_create(vm::ptr thread_id, vm::ptr thread, u32 g verify(HERE), idm::import>([&]() { - 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()) { - fmt::append(full_name, " (%s)", thread_name); + fmt::append(full_name, "%s ", thread_name); } const auto spu = std::make_shared>(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 id, vm::ptr at 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>(fmt::format("RawSPU[0x%x] Thread", index), ls_addr, nullptr, index, "", index); + const u32 tid = idm::make>(fmt::format("RawSPU[0x%x] ", index), ls_addr, nullptr, index, "", index); 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 id, vm::ptr>(fmt::format("IsoSPU[0x%x] Thread", index), ls_addr, nullptr, index, "", index, true); + const auto thread = idm::make_ptr>(fmt::format("IsoSPU[0x%x] ", index), ls_addr, nullptr, index, "", index, true); thread->gpr[3] = v128::from64(0, arg1); thread->gpr[4] = v128::from64(0, arg2);