From eead4b08a16d0949a4abdd5802d283f86f7b7c31 Mon Sep 17 00:00:00 2001 From: Caroline Leman Date: Thu, 27 Apr 2017 13:27:12 +0200 Subject: arch/x86/jit.py: Update pc as well as EIP in ret_cdecl --- miasm2/arch/x86/jit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miasm2/arch') diff --git a/miasm2/arch/x86/jit.py b/miasm2/arch/x86/jit.py index 1329d7a4..6d9be8ac 100644 --- a/miasm2/arch/x86/jit.py +++ b/miasm2/arch/x86/jit.py @@ -127,7 +127,7 @@ class jitter_x86_32(jitter): return ret_ad, args def func_ret_cdecl(self, ret_addr, ret_value=None): - self.cpu.EIP = ret_addr + self.pc = self.cpu.EIP = ret_addr if ret_value is not None: self.cpu.EAX = ret_value -- cgit 1.4.1