about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorWilliam Bruneau <william.bruneau@epfedu.fr>2019-03-12 13:40:08 +0100
committerWilliam Bruneau <william.bruneau@epfedu.fr>2019-03-28 12:59:12 +0100
commit5637a0f468beaba3bbd6920fa980504e282b7d06 (patch)
tree495277ec97d18bb6ef7477fd9c41037bbd615fbc
parentf51724fcdb8d3a57f7e3d2b718636e932d36c965 (diff)
downloadmiasm-5637a0f468beaba3bbd6920fa980504e282b7d06.tar.gz
miasm-5637a0f468beaba3bbd6920fa980504e282b7d06.zip
Python jitter support
-rw-r--r--miasm/jitter/emulatedsymbexec.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/miasm/jitter/emulatedsymbexec.py b/miasm/jitter/emulatedsymbexec.py
index 4355c0b9..35986fb9 100644
--- a/miasm/jitter/emulatedsymbexec.py
+++ b/miasm/jitter/emulatedsymbexec.py
@@ -19,6 +19,36 @@ class EmulatedSymbExec(SymbolicExecutionEngine):
             2: 0x00000209,
             3: 0x078bf9ff
         },
+        2: {
+            0: 0,
+            1: 0,
+            2: 0,
+            3: 0
+        },
+        4: {
+            0: 0,
+            1: 0,
+            2: 0,
+            3: 0
+        },
+        7: {
+            0: 0,
+            1: (1 << 0) | (1 << 3),
+            2: 0,
+            3: 0
+        },
+        0x80000000: {
+            0: 0x80000008,
+            1: 0,
+            2: 0,
+            3: 0
+        },
+        0x80000001: {
+            0: 0,
+            1: 0,
+            2: (1 << 0) | (1 << 8),
+            3: (1 << 11) | (1 << 29),
+        },
     }
 
     def __init__(self, cpu, vm, *args, **kwargs):