about summary refs log tree commit diff stats
path: root/miasm2/arch/mips32
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--miasm2/arch/mips32/arch.py6
-rw-r--r--miasm2/arch/mips32/sem.py8
2 files changed, 7 insertions, 7 deletions
diff --git a/miasm2/arch/mips32/arch.py b/miasm2/arch/mips32/arch.py
index 04ce6bdd..38ed2811 100644
--- a/miasm2/arch/mips32/arch.py
+++ b/miasm2/arch/mips32/arch.py
@@ -430,13 +430,13 @@ class mips32_esize(mips32_imm, cpu.m_arg):
 
 class mips32_eposh(mips32_imm, cpu.m_arg):
     def decode(self, v):
-        self.expr = ExprInt32(v-int(self.parent.epos.expr.arg)+1)
+        self.expr = ExprInt32(v-int(self.parent.epos.expr)+1)
         return True
 
     def encode(self):
         if not isinstance(self.expr, ExprInt):
             return False
-        v = int(self.expr.arg) + int(self.parent.epos.expr.arg) -1
+        v = int(self.expr.arg) + int(self.parent.epos.expr) -1
         self.value = v
         return True
 
@@ -446,7 +446,7 @@ class mips32_eposh(mips32_imm, cpu.m_arg):
 class mips32_cpr(cpu.m_arg):
     parser = regs.regs_cpr0_info.parser
     def decode(self, v):
-        index = int(self.parent.cpr0.expr.arg) << 3
+        index = int(self.parent.cpr0.expr) << 3
         index += v
         self.expr = regs.regs_cpr0_expr[index]
         return True
diff --git a/miasm2/arch/mips32/sem.py b/miasm2/arch/mips32/sem.py
index 93f7d8c3..d03772ca 100644
--- a/miasm2/arch/mips32/sem.py
+++ b/miasm2/arch/mips32/sem.py
@@ -131,8 +131,8 @@ def l_and(arg1, arg2, arg3):
 
 @sbuild.parse
 def ext(arg1, arg2, arg3, arg4):
-    pos = int(arg3.arg)
-    size = int(arg4.arg)
+    pos = int(arg3)
+    size = int(arg4)
     arg1 = arg2[pos:pos + size].zeroExtend(32)
 
 @sbuild.parse
@@ -311,8 +311,8 @@ def tlbp():
 
 def ins(ir, instr, a, b, c, d):
     e = []
-    pos = int(c.arg)
-    l = int(d.arg)
+    pos = int(c)
+    l = int(d)
 
     my_slices = []
     if pos != 0: