about summary refs log tree commit diff stats
path: root/miasm2/jitter/vm_mngr.c
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-12-23 16:37:16 +0100
committerAjax <commial@gmail.com>2017-01-04 17:14:55 +0100
commita993473c6e2b4225c629eeb88eae98f7ee655333 (patch)
treeb816cfe6c706caffca42b052c9d69a806a9876db /miasm2/jitter/vm_mngr.c
parent2b93bc6682f3a08a5eccccefa135535708434f9e (diff)
downloadmiasm-a993473c6e2b4225c629eeb88eae98f7ee655333.tar.gz
miasm-a993473c6e2b4225c629eeb88eae98f7ee655333.zip
Ugly modification to have llvm work again
Diffstat (limited to 'miasm2/jitter/vm_mngr.c')
-rw-r--r--miasm2/jitter/vm_mngr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/miasm2/jitter/vm_mngr.c b/miasm2/jitter/vm_mngr.c
index a8cc7639..5dd844c3 100644
--- a/miasm2/jitter/vm_mngr.c
+++ b/miasm2/jitter/vm_mngr.c
@@ -76,6 +76,11 @@ const uint8_t parity_table[256] = {
     0, CC_P, CC_P, 0, CC_P, 0, 0, CC_P,
 };
 
+uint8_t parity(uint64_t a) {
+	return parity_table[(a) & 0xFF];
+}
+
+
 // #define DEBUG_MIASM_AUTOMOD_CODE
 
 void memory_access_list_init(struct memory_access_list * access)