about summary refs log tree commit diff stats
path: root/miasm2/arch/mep/sem.py
diff options
context:
space:
mode:
authorGuillaume Valadon <guillaume@valadon.net>2018-07-26 15:45:54 +0200
committerGuillaume Valadon <guillaume@valadon.net>2018-07-26 15:45:54 +0200
commit5216ad3112f3867b271c5703b17be1bc20e0fdf1 (patch)
treee9e2693e8891eac2b4b91f8bd29a5728ea378ce4 /miasm2/arch/mep/sem.py
parented84342d3f1ad64092c7b8d75158404a416dd0f1 (diff)
downloadmiasm-5216ad3112f3867b271c5703b17be1bc20e0fdf1.tar.gz
miasm-5216ad3112f3867b271c5703b17be1bc20e0fdf1.zip
Incorrect ir_mepb.addrsize definition
Diffstat (limited to '')
-rw-r--r--miasm2/arch/mep/sem.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/miasm2/arch/mep/sem.py b/miasm2/arch/mep/sem.py
index 32a3270d..3558de70 100644
--- a/miasm2/arch/mep/sem.py
+++ b/miasm2/arch/mep/sem.py
@@ -1138,12 +1138,13 @@ class ir_mepb(IntermediateRepresentation):
        It transforms an instructon into an IR.
     """
 
+    addrsize = 32
+
     def __init__(self, loc_db=None):
         IntermediateRepresentation.__init__(self, mn_mep, "b", loc_db)
         self.pc = mn_mep.getpc()
         self.sp = mn_mep.getsp()
         self.IRDst = ExprId("IRDst", 32)
-        self.addrsize = 32
 
     def get_ir(self, instr):
         """Get the IR from a miasm instruction."""