about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-07-26 18:42:25 +0200
committerGitHub <noreply@github.com>2018-07-26 18:42:25 +0200
commitbb1cc452ca771ea6800ccfebd4c45237ba9a7554 (patch)
treee9e2693e8891eac2b4b91f8bd29a5728ea378ce4
parented84342d3f1ad64092c7b8d75158404a416dd0f1 (diff)
parent5216ad3112f3867b271c5703b17be1bc20e0fdf1 (diff)
downloadmiasm-bb1cc452ca771ea6800ccfebd4c45237ba9a7554.tar.gz
miasm-bb1cc452ca771ea6800ccfebd4c45237ba9a7554.zip
Merge pull request #812 from guedou/mepl_addrsize
Incorrect ir_mepb.addrsize definition
-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."""