diff options
| author | Tim Blazytko <tim.blazytko@rub.de> | 2015-03-24 16:49:56 +0100 |
|---|---|---|
| committer | Tim Blazytko <tim.blazytko@rub.de> | 2015-03-24 16:49:56 +0100 |
| commit | 077698af51175bae73e5faf9d79b91d1cc12f92b (patch) | |
| tree | b002745a40a5e04c1c4a208d113426c17fcc58d2 | |
| parent | 0042a08d20659ef5b23f1ae2b034f502a2f4d4af (diff) | |
| download | miasm-077698af51175bae73e5faf9d79b91d1cc12f92b.tar.gz miasm-077698af51175bae73e5faf9d79b91d1cc12f92b.zip | |
fixed pxor semantics
| -rw-r--r-- | miasm2/arch/x86/sem.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index f09e5057..8c3a351d 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -304,8 +304,11 @@ def xor(ir, instr, a, b): def pxor(ir, instr, a, b): e = [] + if isinstance(a, m2_expr.ExprMem): + a = m2_expr.ExprMem(a.arg, b.size) + if isinstance(b, m2_expr.ExprMem): + b = m2_expr.ExprMem(b.arg, a.size) c = a ^ b - # e += update_flag_logic(c) e.append(m2_expr.ExprAff(a, c)) return e, [] |