mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
SPU LLVM: fix branch patchpoints
Forgot to passthrough 3rd arg (rip)
This commit is contained in:
parent
41b87cf577
commit
466d58ccef
1 changed files with 3 additions and 2 deletions
|
@ -2714,7 +2714,8 @@ public:
|
||||||
m_ir = &irb;
|
m_ir = &irb;
|
||||||
|
|
||||||
// Add entry function (contains only state/code check)
|
// Add entry function (contains only state/code check)
|
||||||
const auto main_func = llvm::cast<llvm::Function>(m_module->getOrInsertFunction(hash, get_type<void>(), get_type<u8*>(), get_type<u8*>()));
|
const auto main_func = llvm::cast<llvm::Function>(m_module->getOrInsertFunction(hash, get_type<void>(), get_type<u8*>(), get_type<u8*>(), get_type<u8*>()));
|
||||||
|
const auto main_arg2 = &*(main_func->arg_begin() + 2);
|
||||||
set_function(main_func);
|
set_function(main_func);
|
||||||
|
|
||||||
// Start compilation
|
// Start compilation
|
||||||
|
@ -2840,7 +2841,7 @@ public:
|
||||||
{
|
{
|
||||||
const auto pbfail = spu_ptr<u64>(&spu_thread::block_failure);
|
const auto pbfail = spu_ptr<u64>(&spu_thread::block_failure);
|
||||||
m_ir->CreateStore(m_ir->CreateAdd(m_ir->CreateLoad(pbfail), m_ir->getInt64(1)), pbfail);
|
m_ir->CreateStore(m_ir->CreateAdd(m_ir->CreateLoad(pbfail), m_ir->getInt64(1)), pbfail);
|
||||||
tail(&spu_recompiler_base::dispatch, m_thread, m_ir->getInt32(0), m_ir->getInt32(0));
|
tail(&spu_recompiler_base::dispatch, m_thread, m_ir->getInt32(0), main_arg2);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue