about summary refs log tree commit diff stats
path: root/test/arch/mips32/arch.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 /test/arch/mips32/arch.py
parentdb4fd7f58d6a4ed87fc7d6f28c7c2af31e61fb65 (diff)
downloadmiasm-94d49ed54f07e3d399de74de13f5422837c031fa.tar.gz
miasm-94d49ed54f07e3d399de74de13f5422837c031fa.zip
Core: updt parser structure
Diffstat (limited to '')
-rw-r--r--test/arch/mips32/arch.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/arch/mips32/arch.py b/test/arch/mips32/arch.py
index b28e2583..c6b68c0c 100644
--- a/test/arch/mips32/arch.py
+++ b/test/arch/mips32/arch.py
@@ -1,8 +1,11 @@
 import time
 from pdb import pm
 
+from miasm2.core.asmblock import AsmSymbolPool
 from miasm2.arch.mips32.arch import *
 
+symbol_pool = AsmSymbolPool()
+
 reg_tests_mips32 = [
     ("004496D8    ADDU       GP, GP, T9",
      "0399E021"),
@@ -227,7 +230,7 @@ for s, l in reg_tests_mips32:
     assert(str(mn) == s)
     # print hex(b)
     # print [str(x.get()) for x in mn.args]
-    l = mn_mips32.fromstring(s, 'b')
+    l = mn_mips32.fromstring(s, symbol_pool, 'b')
     # print l
     assert(str(l) == s)
     a = mn_mips32.asm(l, 'b')