Cleared out the top 16 bits in PARAM1 of the ABI_CallFunctionC16 JIT command.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5232 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
095f81e2f9
commit
5ff07aace6
|
@ -190,14 +190,16 @@ void XEmitter::ABI_RestoreStack(unsigned int frameSize) {
|
||||||
// Common functions
|
// Common functions
|
||||||
void XEmitter::ABI_CallFunction(void *func) {
|
void XEmitter::ABI_CallFunction(void *func) {
|
||||||
// Far call
|
// Far call
|
||||||
MOV(64, R(RAX), Imm64((u64)func));CALLptr(R(RAX));
|
MOV(64, R(RAX), Imm64((u64)func));
|
||||||
|
CALLptr(R(RAX));
|
||||||
//CALL(func);
|
//CALL(func);
|
||||||
}
|
}
|
||||||
|
|
||||||
void XEmitter::ABI_CallFunctionC16(void *func, u16 param1) {
|
void XEmitter::ABI_CallFunctionC16(void *func, u16 param1) {
|
||||||
MOV(16, R(ABI_PARAM1), Imm16(param1));
|
MOV(32, R(ABI_PARAM1), Imm32((u32)param1));
|
||||||
// Far call
|
// Far call
|
||||||
MOV(64, R(RAX), Imm64((u64)func));CALLptr(R(RAX));
|
MOV(64, R(RAX), Imm64((u64)func));
|
||||||
|
CALLptr(R(RAX));
|
||||||
//CALL(func);
|
//CALL(func);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue