about summary refs log tree commit diff stats
path: root/miasm2/arch/mips32/regs.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-05-03 17:50:56 +0200
committerGitHub <noreply@github.com>2018-05-03 17:50:56 +0200
commita06850edff247384a9d28eaea1736c280e691079 (patch)
tree2ca1a9d32afaf0eb571dda4c3b791e429a709abc /miasm2/arch/mips32/regs.py
parent6eace70b4ef781d77d4ad61c2b454ed21fffc7ca (diff)
parent919178aa0d80aafa701315ad028e85b61c952c1e (diff)
downloadmiasm-a06850edff247384a9d28eaea1736c280e691079.tar.gz
miasm-a06850edff247384a9d28eaea1736c280e691079.zip
Merge pull request #731 from serpilliere/updt_mips_runtime
Update Mips runtime
Diffstat (limited to '')
-rw-r--r--miasm2/arch/mips32/regs.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/miasm2/arch/mips32/regs.py b/miasm2/arch/mips32/regs.py
index afade869..fadf7118 100644
--- a/miasm2/arch/mips32/regs.py
+++ b/miasm2/arch/mips32/regs.py
@@ -55,11 +55,10 @@ regs_flt_expr, regs_flt_init, fltregs = gen_regs(regs_flt_str, globals(), sz=64)
 regs_fcc_expr, regs_fcc_init, fccregs = gen_regs(regs_fcc_str, globals())
 
 
-all_regs_ids = [PC, PC_FETCH, R_LO, R_HI] + gpregs_expr + regs_flt_expr + \
+all_regs_ids = [PC, PC_FETCH, R_LO, R_HI, exception_flags] + gpregs_expr + regs_flt_expr + \
     regs_fcc_expr + regs_cpr0_expr
 all_regs_ids_byname = dict([(x.name, x) for x in all_regs_ids])
-all_regs_ids_init = [PC_init, PC_FETCH_init, R_LO_init, R_HI_init] + \
-    gpregs_init + regs_flt_init + regs_fcc_init + regs_cpr0_init
+all_regs_ids_init = [ExprId("%s_init" % reg.name, reg.size) for reg in all_regs_ids]
 all_regs_ids_no_alias = all_regs_ids[:]
 
 attrib_to_regs = {