about summary refs log tree commit diff stats
path: root/miasm2/arch/mips32/regs.py
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2014-08-22 16:13:53 +0200
committerserpilliere <devnull@localhost>2014-08-22 16:13:53 +0200
commit22c0cc1ae2417550ff87baa33edfd0330071ddc7 (patch)
treedcb2b92a1a4b122bd0ac5bb0bf8b9cfc42271823 /miasm2/arch/mips32/regs.py
parentab84e4dedfafb52efe8f9f04151f0e026b00476d (diff)
downloadmiasm-22c0cc1ae2417550ff87baa33edfd0330071ddc7.tar.gz
miasm-22c0cc1ae2417550ff87baa33edfd0330071ddc7.zip
Jitter: add mips32l jit
Diffstat (limited to 'miasm2/arch/mips32/regs.py')
-rw-r--r--miasm2/arch/mips32/regs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/miasm2/arch/mips32/regs.py b/miasm2/arch/mips32/regs.py
index 2667f482..0f065371 100644
--- a/miasm2/arch/mips32/regs.py
+++ b/miasm2/arch/mips32/regs.py
@@ -9,6 +9,8 @@ gen_reg('PC', globals())
 gen_reg('R_LO', globals())
 gen_reg('R_HI', globals())
 
+PC_init = ExprId("PC_init")
+
 regs32_str = ["ZERO", 'AT', 'V0', 'V1'] +\
     ['A%d'%i for i in xrange(4)] +\
     ['T%d'%i for i in xrange(8)] +\
@@ -42,9 +44,9 @@ regs_flt_expr, regs_flt_init, fltregs = gen_regs(regs_flt_str, globals())
 regs_fcc_expr, regs_fcc_init, fccregs = gen_regs(regs_fcc_str, globals())
 
 
-all_regs_ids = gpregs_expr + regs_flt_expr + regs_fcc_expr
+all_regs_ids = [PC] + gpregs_expr + regs_flt_expr + regs_fcc_expr
 all_regs_ids_byname = dict([(x.name, x) for x in all_regs_ids])
-all_regs_ids_init = gpregs_init + regs_flt_init + regs_fcc_init
+all_regs_ids_init = [PC_init] + gpregs_init + regs_flt_init + regs_fcc_init
 
 regs_init = {}
 for i, r in enumerate(all_regs_ids):