diff options
| author | Caroline Leman <caroline.leman@cea.fr> | 2017-04-27 13:27:12 +0200 |
|---|---|---|
| committer | Caroline Leman <caroline.leman@cea.fr> | 2017-04-27 13:27:12 +0200 |
| commit | eead4b08a16d0949a4abdd5802d283f86f7b7c31 (patch) | |
| tree | 1ce1bd7da1beb3b4704c9166acc9de531e4956b7 | |
| parent | ca1482ebc82e768f6113eac90cfe56e82a720cd7 (diff) | |
| download | miasm-eead4b08a16d0949a4abdd5802d283f86f7b7c31.tar.gz miasm-eead4b08a16d0949a4abdd5802d283f86f7b7c31.zip | |
arch/x86/jit.py: Update pc as well as EIP in ret_cdecl
| -rw-r--r-- | miasm2/arch/x86/jit.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |