about summary refs log tree commit diff stats
path: root/miasm2/jitter/codegen.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-10-12 13:49:37 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-10-12 13:49:37 +0200
commit9503c250c5524a6c388aba032be4e34517b358f9 (patch)
treecb9ddd00da3917c31b570b5b9ca849ac4803c55c /miasm2/jitter/codegen.py
parent3cd3675165cd96c030401fbb1e6392898507a71b (diff)
downloadmiasm-9503c250c5524a6c388aba032be4e34517b358f9.tar.gz
miasm-9503c250c5524a6c388aba032be4e34517b358f9.zip
Expression: replace arg by ptr in ExprMem
Diffstat (limited to 'miasm2/jitter/codegen.py')
-rw-r--r--miasm2/jitter/codegen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/jitter/codegen.py b/miasm2/jitter/codegen.py
index e1185944..6c0e7a9b 100644
--- a/miasm2/jitter/codegen.py
+++ b/miasm2/jitter/codegen.py
@@ -272,7 +272,7 @@ class CGen(object):
                         )
                     )
             elif isinstance(dst, ExprMem):
-                ptr = dst.arg.replace_expr(prefetchers)
+                ptr = dst.ptr.replace_expr(prefetchers)
                 if ptr.size <= self.translator.NATIVE_INT_MAX_SIZE:
                     new_dst = ExprMem(ptr, dst.size)
                     str_dst = self.id_to_c(new_dst).replace('MEM_LOOKUP', 'MEM_WRITE')