about summary refs log tree commit diff stats
path: root/miasm2/arch/mips32/regs.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-05-05 23:13:12 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-05-14 10:29:27 +0200
commit94d49ed54f07e3d399de74de13f5422837c031fa (patch)
treeb3f7fd34c7ff8d17bd9f26d53511b30935485092 /miasm2/arch/mips32/regs.py
parentdb4fd7f58d6a4ed87fc7d6f28c7c2af31e61fb65 (diff)
downloadmiasm-94d49ed54f07e3d399de74de13f5422837c031fa.tar.gz
miasm-94d49ed54f07e3d399de74de13f5422837c031fa.zip
Core: updt parser structure
Diffstat (limited to '')
-rw-r--r--miasm2/arch/mips32/regs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/miasm2/arch/mips32/regs.py b/miasm2/arch/mips32/regs.py
index fadf7118..7ff949f2 100644
--- a/miasm2/arch/mips32/regs.py
+++ b/miasm2/arch/mips32/regs.py
@@ -4,11 +4,11 @@ from miasm2.expression.expression import ExprId
 from miasm2.core.cpu import gen_reg, gen_regs
 
 
-gen_reg('PC', globals())
-gen_reg('PC_FETCH', globals())
+PC, _ = gen_reg('PC')
+PC_FETCH, _ = gen_reg('PC_FETCH')
 
-gen_reg('R_LO', globals())
-gen_reg('R_HI', globals())
+R_LO, _ = gen_reg('R_LO')
+R_HI, _ = gen_reg('R_HI')
 
 exception_flags = ExprId('exception_flags', 32)