MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / get_stack_arg

Method get_stack_arg

rpcs3/Emu/Cell/PPUThread.cpp:2917–2922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2915}
2916
2917be_t<u64>* ppu_thread::get_stack_arg(s32 i, u64 align)
2918{
2919 if (align != 1 && align != 2 && align != 4 && align != 8 && align != 16)
2920 fmt::throw_exception("Unsupported alignment: 0x%llx", align);
2921 return vm::_ptr<u64>(vm::cast((gpr[1] + 0x30 + 0x8 * (i - 1)) & (0 - align)));
2922}
2923
2924void ppu_thread::fast_call(u32 addr, u64 rtoc, bool is_thread_entry)
2925{

Callers 2

getMethod · 0.80
get_argMethod · 0.80

Calls 2

throw_exceptionClass · 0.85
castFunction · 0.50

Tested by

no test coverage detected