about summary refs log tree commit diff stats
path: root/test/arch/msp430/sem.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2020-04-03 10:16:25 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2020-04-03 11:56:59 +0200
commit95b24655c797f5b4f96c8834ad6ef2f21748699c (patch)
treea1983268549523fcc94376ee53ebfa4cb2c42f42 /test/arch/msp430/sem.py
parent1d5127036dc7e1688c102c5781a6618b5dd27f16 (diff)
downloadmiasm-95b24655c797f5b4f96c8834ad6ef2f21748699c.tar.gz
miasm-95b24655c797f5b4f96c8834ad6ef2f21748699c.zip
Use int(expr) instead of expr.arg.arg
Diffstat (limited to 'test/arch/msp430/sem.py')
-rwxr-xr-xtest/arch/msp430/sem.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/arch/msp430/sem.py b/test/arch/msp430/sem.py
index 2aca66ed..cb101937 100755
--- a/test/arch/msp430/sem.py
+++ b/test/arch/msp430/sem.py
@@ -39,10 +39,12 @@ def compute(asm, inputstate={}, debug=False):
         for k, v in viewitems(symexec.symbols):
             if regs_init.get(k, None) != v:
                 print(k, v)
-    return {
-        k: v.arg.arg for k, v in viewitems(symexec.symbols)
+
+    result =  {
+        k: int(v) for k, v in viewitems(symexec.symbols)
         if k not in EXCLUDE_REGS and regs_init.get(k, None) != v
     }
+    return result
 
 
 class TestMSP430Semantic(unittest.TestCase):