diff --git a/rpcs3/Emu/Cell/lv2/sys_cond.cpp b/rpcs3/Emu/Cell/lv2/sys_cond.cpp index ba36ad5d14..e6a5e16c34 100644 --- a/rpcs3/Emu/Cell/lv2/sys_cond.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_cond.cpp @@ -74,7 +74,7 @@ error_code sys_cond_create(ppu_thread& ppu, vm::ptr cond_id, u32 mutex_id, { ppu.state += cpu_flag::wait; - sys_cond.warning("sys_cond_create(cond_id=*0x%x, mutex_id=0x%x, attr=*0x%x)", cond_id, mutex_id, attr); + sys_cond.trace("sys_cond_create(cond_id=*0x%x, mutex_id=0x%x, attr=*0x%x)", cond_id, mutex_id, attr); auto mutex = idm::get(mutex_id); @@ -87,6 +87,11 @@ error_code sys_cond_create(ppu_thread& ppu, vm::ptr cond_id, u32 mutex_id, const u64 ipc_key = lv2_obj::get_key(_attr); + if (ipc_key) + { + sys_cond.warning("sys_cond_create(cond_id=*0x%x, attr=*0x%x): IPC=0x%016x", cond_id, attr, ipc_key); + } + if (const auto error = lv2_obj::create(_attr.pshared, ipc_key, _attr.flags, [&] { return std::make_shared( @@ -108,7 +113,7 @@ error_code sys_cond_destroy(ppu_thread& ppu, u32 cond_id) { ppu.state += cpu_flag::wait; - sys_cond.warning("sys_cond_destroy(cond_id=0x%x)", cond_id); + sys_cond.trace("sys_cond_destroy(cond_id=0x%x)", cond_id); const auto cond = idm::withdraw(cond_id, [&](lv2_cond& cond) -> CellError { @@ -129,6 +134,11 @@ error_code sys_cond_destroy(ppu_thread& ppu, u32 cond_id) return CELL_ESRCH; } + if (cond->key) + { + sys_cond.warning("sys_cond_destroy(cond_id=0x%x): IPC=0x%016x", cond_id, cond->key); + } + if (cond.ret) { return cond.ret; diff --git a/rpcs3/Emu/Cell/lv2/sys_lwcond.cpp b/rpcs3/Emu/Cell/lv2/sys_lwcond.cpp index 541d8f27ad..501f5ac37b 100644 --- a/rpcs3/Emu/Cell/lv2/sys_lwcond.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_lwcond.cpp @@ -29,7 +29,7 @@ error_code _sys_lwcond_create(ppu_thread& ppu, vm::ptr lwcond_id, u32 lwmut { ppu.state += cpu_flag::wait; - sys_lwcond.warning(u8"_sys_lwcond_create(lwcond_id=*0x%x, lwmutex_id=0x%x, control=*0x%x, name=0x%llx (ā€œ%sā€))", lwcond_id, lwmutex_id, control, name, lv2_obj::name_64{std::bit_cast>(name)}); + sys_lwcond.trace(u8"_sys_lwcond_create(lwcond_id=*0x%x, lwmutex_id=0x%x, control=*0x%x, name=0x%llx (ā€œ%sā€))", lwcond_id, lwmutex_id, control, name, lv2_obj::name_64{std::bit_cast>(name)}); u32 protocol; @@ -62,7 +62,7 @@ error_code _sys_lwcond_destroy(ppu_thread& ppu, u32 lwcond_id) { ppu.state += cpu_flag::wait; - sys_lwcond.warning("_sys_lwcond_destroy(lwcond_id=0x%x)", lwcond_id); + sys_lwcond.trace("_sys_lwcond_destroy(lwcond_id=0x%x)", lwcond_id); std::shared_ptr _cond; diff --git a/rpcs3/Emu/Cell/lv2/sys_mutex.cpp b/rpcs3/Emu/Cell/lv2/sys_mutex.cpp index 6eb48c4265..42365fe9cc 100644 --- a/rpcs3/Emu/Cell/lv2/sys_mutex.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_mutex.cpp @@ -40,7 +40,7 @@ error_code sys_mutex_create(ppu_thread& ppu, vm::ptr mutex_id, vm::ptr mutex_id, vm::ptr mutex_id, vm::ptr(mutex_id, [](lv2_mutex& mutex) -> CellError { @@ -126,6 +133,11 @@ error_code sys_mutex_destroy(ppu_thread& ppu, u32 mutex_id) return CELL_ESRCH; } + if (mutex->key) + { + sys_mutex.warning("sys_mutex_destroy(mutex_id=0x%x): IPC=0x%016x", mutex_id, mutex->key); + } + if (mutex.ret) { return mutex.ret;