mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
LV2: Fixup for IPC
* Fix typo in lv2_obj::create. * Always save ipc_key as 0 for non-shared object creations, regardless of thbe value set by creation attribute. * Show IPC key of shared memory (sys_mmapper) memory objects in kernel explorer.
This commit is contained in:
parent
900ebf6583
commit
64997662d2
15 changed files with 63 additions and 42 deletions
|
|
@ -314,7 +314,15 @@ void kernel_explorer::Update()
|
|||
case SYS_MEM_OBJECT:
|
||||
{
|
||||
auto& mem = static_cast<lv2_memory&>(obj);
|
||||
add_leaf(node, qstr(fmt::format("Shared Mem 0x%08x: Size: 0x%x (%0.2f MB), Granularity: %s, Mappings: %u", id, mem.size, mem.size * 1. / (1024 * 1024), mem.align == 0x10000u ? "64K" : "1MB", +mem.counter)));
|
||||
const f64 size_mb = mem.size * 1. / (1024 * 1024);
|
||||
|
||||
if (mem.pshared)
|
||||
{
|
||||
add_leaf(node, qstr(fmt::format("Shared Mem 0x%08x: Size: 0x%x (%0.2f MB), Granularity: %s, Mappings: %u Key: %#llx", id, mem.size, size_mb, mem.align == 0x10000u ? "64K" : "1MB", +mem.counter, mem.key)));
|
||||
break;
|
||||
}
|
||||
|
||||
add_leaf(node, qstr(fmt::format("Shared Mem 0x%08x: Size: 0x%x (%0.2f MB), Granularity: %s, Mappings: %u", id, mem.size, size_mb, mem.align == 0x10000u ? "64K" : "1MB", +mem.counter)));
|
||||
break;
|
||||
}
|
||||
case SYS_MUTEX_OBJECT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue