about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2014-09-02 09:53:38 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2014-09-02 09:53:38 +0200
commiteebb3422f0c9606a92933630aa8cc02ac4b6d7bd (patch)
treedbefd8a009cc2018428a3a9a880b0277f501d6f2
parent08da5db330df45ec98c50f92fb20c241286e417c (diff)
downloadmiasm-eebb3422f0c9606a92933630aa8cc02ac4b6d7bd.tar.gz
miasm-eebb3422f0c9606a92933630aa8cc02ac4b6d7bd.zip
mips: fix conditionnal mov
-rw-r--r--miasm2/arch/mips32/sem.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/miasm2/arch/mips32/sem.py b/miasm2/arch/mips32/sem.py
index 10986a99..d96e6b2d 100644
--- a/miasm2/arch/mips32/sem.py
+++ b/miasm2/arch/mips32/sem.py
@@ -149,16 +149,16 @@ def sh(ir, instr, a, b):
     return None, e, []
 
 def movn(ir, instr, a, b, c):
-    lbl_do = ExprId(ir.gen_label(), instr.mode)
-    lbl_skip = ExprId(ir.get_next_label(instr), instr.mode)
+    lbl_do = ExprId(ir.gen_label(), 32)
+    lbl_skip = ExprId(ir.get_next_label(instr), 32)
     e_do = []
     e_do.append(ExprAff(a, b))
 
     return ExprCond(c, lbl_do, lbl_skip), [], [irbloc(lbl_do.name, lbl_skip, [e_do])]
 
 def movz(ir, instr, a, b, c):
-    lbl_do = ExprId(ir.gen_label(), instr.mode)
-    lbl_skip = ExprId(ir.get_next_label(instr), instr.mode)
+    lbl_do = ExprId(ir.gen_label(), 32)
+    lbl_skip = ExprId(ir.get_next_label(instr), 32)
     e_do = []
     e_do.append(ExprAff(a, b))