about summary refs log tree commit diff stats
path: root/miasm2/arch/ppc
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-05-14 10:38:16 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-05-14 10:38:16 +0200
commitab3635f44ab45e22150bc373e33b7cf11ea46f63 (patch)
tree4159df3221c76a70548e7f3d2481e91b1770bfe6 /miasm2/arch/ppc
parent94d49ed54f07e3d399de74de13f5422837c031fa (diff)
downloadmiasm-ab3635f44ab45e22150bc373e33b7cf11ea46f63.tar.gz
miasm-ab3635f44ab45e22150bc373e33b7cf11ea46f63.zip
Parser: fix arguments name
Diffstat (limited to 'miasm2/arch/ppc')
-rw-r--r--miasm2/arch/ppc/arch.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/miasm2/arch/ppc/arch.py b/miasm2/arch/ppc/arch.py
index d6a2b912..945824a0 100644
--- a/miasm2/arch/ppc/arch.py
+++ b/miasm2/arch/ppc/arch.py
@@ -19,13 +19,13 @@ log.setLevel(logging.DEBUG)
 LPARENTHESIS = Suppress(Literal("("))
 RPARENTHESIS = Suppress(Literal(")"))
 
-def cb_deref_imm_reg(t):
-    if len(t) == 1:
-        return AstMem(t[0], 32)
-    elif len(t) == 2:
-        return AstMem(t[1] + t[0], 32)
+def cb_deref_imm_reg(tokens):
+    if len(tokens) == 1:
+        return AstMem(tokens[0], 32)
+    elif len(tokens) == 2:
+        return AstMem(tokens[1] + tokens[0], 32)
     else:
-        raise NotImplementedError('len(t) > 2')
+        raise NotImplementedError('len(tokens) > 2')
 
 
 deref_reg_disp = (Optional(base_expr) + LPARENTHESIS + gpregs.parser +  RPARENTHESIS).setParseAction(cb_deref_imm_reg)