diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2018-02-15 23:28:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-15 23:28:36 +0100 |
| commit | e933c0c31742ddb9dcfd9b46d93fe2a47553af5e (patch) | |
| tree | a5b6ac1d9f3ecf6378d2ae33661b0433f5736dc6 /miasm2/arch/mips32/arch.py | |
| parent | 092d0bfaac18ffe683a8ef3a1dedc5dba80e7688 (diff) | |
| parent | 2420df074cd2f3bb8b1e343a5bce6b83fffa9d80 (diff) | |
| download | miasm-e933c0c31742ddb9dcfd9b46d93fe2a47553af5e.tar.gz miasm-e933c0c31742ddb9dcfd9b46d93fe2a47553af5e.zip | |
Merge pull request #683 from commial/refactor/remove-default-exprmem-size
Refactor/remove default exprmem size
Diffstat (limited to 'miasm2/arch/mips32/arch.py')
| -rw-r--r-- | miasm2/arch/mips32/arch.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm2/arch/mips32/arch.py b/miasm2/arch/mips32/arch.py index d64e27df..3abdc053 100644 --- a/miasm2/arch/mips32/arch.py +++ b/miasm2/arch/mips32/arch.py @@ -29,13 +29,13 @@ def deref2expr(s, l, t): if len(t) != 4: raise NotImplementedError("TODO") - return ExprMem(t[2] + t[0]) + return ExprMem(t[2] + t[0], 32) def deref2expr_nooff(s, l, t): t = t[0] if len(t) != 3: raise NotImplementedError("TODO") - return ExprMem(t[1]) + return ExprMem(t[1], 32) base_expr = cpu.base_expr @@ -380,7 +380,7 @@ class mips32_dreg_imm(cpu.m_arg): def decode(self, v): imm = self.parent.imm.expr r = gpregs.expr[v] - self.expr = ExprMem(r+imm) + self.expr = ExprMem(r+imm, 32) return True def encode(self): |