diff options
| author | Ajax <commial@gmail.com> | 2015-12-23 16:37:16 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2017-01-04 17:14:55 +0100 |
| commit | a993473c6e2b4225c629eeb88eae98f7ee655333 (patch) | |
| tree | b816cfe6c706caffca42b052c9d69a806a9876db /miasm2/jitter/vm_mngr.c | |
| parent | 2b93bc6682f3a08a5eccccefa135535708434f9e (diff) | |
| download | miasm-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.c | 5 |
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) |