mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-11 12:00:23 +02:00
Merge pull request #4782 from bylaws/oo0
OpcodeDispatcher: Simplify CALLOp return addr calc
This commit is contained in:
4 files changed
+46
-92
No files matched your search
@@ -526,8 +526,7 @@ void OpDispatchBuilder::CALLOp(OpcodeArgs) {
|
||||
// Call instruction only uses up to 32-bit signed displacement
|
||||
int64_t TargetOffset = Op->Src[0].Literal();
|
||||
|
||||
auto NewRIP = GetRelocatedPC(Op, TargetOffset);
|
||||
auto ConstantPC = Sub(GPRSize, NewRIP, TargetOffset);
|
||||
auto ConstantPC = GetRelocatedPC(Op);
|
||||
|
||||
// Push the return address.
|
||||
Push(GPRSize, ConstantPC);
|
||||
|
||||
Reference in new issue
Block a user