diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2018-02-15 23:28:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-15 23:28:36 +0100 |
| commit | e933c0c31742ddb9dcfd9b46d93fe2a47553af5e (patch) | |
| tree | a5b6ac1d9f3ecf6378d2ae33661b0433f5736dc6 /miasm2/arch/x86/sem.py | |
| parent | 092d0bfaac18ffe683a8ef3a1dedc5dba80e7688 (diff) | |
| parent | 2420df074cd2f3bb8b1e343a5bce6b83fffa9d80 (diff) | |
| download | miasm-e933c0c31742ddb9dcfd9b46d93fe2a47553af5e.tar.gz miasm-e933c0c31742ddb9dcfd9b46d93fe2a47553af5e.zip | |
Merge pull request #683 from commial/refactor/remove-default-exprmem-size
Refactor/remove default exprmem size
Diffstat (limited to 'miasm2/arch/x86/sem.py')
| -rw-r--r-- | miasm2/arch/x86/sem.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index 9f438b71..d81cbe5e 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -1078,7 +1078,7 @@ def pushfw(ir, instr): def popfd(ir, instr): - tmp = ir.ExprMem(mRSP[instr.mode]) + tmp = ir.ExprMem(mRSP[instr.mode], 32) e = [] e.append(m2_expr.ExprAff(cf, m2_expr.ExprSlice(tmp, 0, 1))) e.append(m2_expr.ExprAff(pf, m2_expr.ExprSlice(tmp, 2, 3))) @@ -1121,7 +1121,7 @@ def _tpl_eflags(tmp): def popfw(ir, instr): - tmp = ir.ExprMem(mRSP[instr.mode]) + tmp = ir.ExprMem(mRSP[instr.mode], 32) e = _tpl_eflags(tmp) e.append( m2_expr.ExprAff(mRSP[instr.mode], mRSP[instr.mode] + m2_expr.ExprInt(2, mRSP[instr.mode].size))) @@ -5046,7 +5046,7 @@ class ir_x86_16(IntermediateRepresentation): def mod_pc(self, instr, instr_ir, extra_ir): pass - def ExprMem(self, ptr, size=32): + def ExprMem(self, ptr, size): """Generate a memory access to @ptr The ptr is resized to a fixed size self.addrsize |