diff options
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/sh4/arch.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/miasm2/arch/sh4/arch.py b/miasm2/arch/sh4/arch.py index d72e6945..c4e462b9 100644 --- a/miasm2/arch/sh4/arch.py +++ b/miasm2/arch/sh4/arch.py @@ -36,11 +36,7 @@ def parse_pcandimmimm(t): return (t[0] & t[1]) + t[2] def ast_id2expr(t): - if not t in mn_sh4.regs.all_regs_ids_byname: - r = ExprId(asm_label(t)) - else: - r = mn_sh4.regs.all_regs_ids_byname[t] - return r + return mn_sh4.regs.all_regs_ids_byname.get(t, t) def ast_int2expr(a): return ExprInt32(a) |