aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormerry <[email protected]>2024-01-09 15:57:58 +0000
committermerry <[email protected]>2024-01-09 15:57:58 +0000
commit7256f497d2b29d04abf16ca16a2f69db3fb61f4c (patch)
treea6227d5d0391951c21ed961d0e9bcc2d98f09253
parent2780b2318d3e1ffcc5c026df8f9f357f7dc28eab (diff)
downloaddynarmic-7256f497d2b29d04abf16ca16a2f69db3fb61f4c.tar.gz
dynarmic-7256f497d2b29d04abf16ca16a2f69db3fb61f4c.zip
ir_emitter: Fix CallHostFunction
-rw-r--r--src/dynarmic/ir/ir_emitter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dynarmic/ir/ir_emitter.cpp b/src/dynarmic/ir/ir_emitter.cpp
index abcbd420..ebb82202 100644
--- a/src/dynarmic/ir/ir_emitter.cpp
+++ b/src/dynarmic/ir/ir_emitter.cpp
@@ -2853,15 +2853,15 @@ void IREmitter::Breakpoint() {
}
void IREmitter::CallHostFunction(void (*fn)(void)) {
- Inst(Opcode::CallHostFunction, Imm64(mcl::bit_cast<u64>(fn)));
+ Inst(Opcode::CallHostFunction, Imm64(mcl::bit_cast<u64>(fn)), Value{}, Value{}, Value{});
}
void IREmitter::CallHostFunction(void (*fn)(u64), const U64& arg1) {
- Inst(Opcode::CallHostFunction, Imm64(mcl::bit_cast<u64>(fn)), arg1);
+ Inst(Opcode::CallHostFunction, Imm64(mcl::bit_cast<u64>(fn)), arg1, Value{}, Value{});
}
void IREmitter::CallHostFunction(void (*fn)(u64, u64), const U64& arg1, const U64& arg2) {
- Inst(Opcode::CallHostFunction, Imm64(mcl::bit_cast<u64>(fn)), arg1, arg2);
+ Inst(Opcode::CallHostFunction, Imm64(mcl::bit_cast<u64>(fn)), arg1, arg2, Value{});
}
void IREmitter::CallHostFunction(void (*fn)(u64, u64, u64), const U64& arg1, const U64& arg2, const U64& arg3) {