am/jit: reference memory instance from context

This commit is contained in:
Liam
2023-12-24 19:30:16 -05:00
parent cf8c7d4ed3
commit 47e44a6693
3 changed files with 7 additions and 5 deletions

View File

@ -360,6 +360,10 @@ public:
return *thread;
}
[[nodiscard]] Core::Memory::Memory& GetMemory() const {
return memory;
}
template <typename T>
Kernel::KScopedAutoObject<T> GetObjectFromHandle(u32 handle) {
auto obj = client_handle_table->GetObjectForIpc(handle, thread);