diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2017-01-05 10:41:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-05 10:41:32 +0100 |
| commit | c551e1e761b14b962ae327e6752599b7934ba9cc (patch) | |
| tree | 4ed186bb5cef2793569d125f42b681dbac4b2fb4 /miasm2/jitter/vm_mngr.c | |
| parent | 2b93bc6682f3a08a5eccccefa135535708434f9e (diff) | |
| parent | 66d61fa8b799214f42be7ba42fe8138e302978bb (diff) | |
| download | miasm-c551e1e761b14b962ae327e6752599b7934ba9cc.tar.gz miasm-c551e1e761b14b962ae327e6752599b7934ba9cc.zip | |
Merge pull request #458 from commial/feature-llvm-jitter
Feature llvm jitter
Diffstat (limited to 'miasm2/jitter/vm_mngr.c')
| -rw-r--r-- | miasm2/jitter/vm_mngr.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/miasm2/jitter/vm_mngr.c b/miasm2/jitter/vm_mngr.c index a8cc7639..42f91f72 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) @@ -916,7 +921,7 @@ unsigned int rcr_rez_op(unsigned int size, unsigned int a, unsigned int b, unsig return tmp; } -unsigned int x86_bsr(uint64_t src, unsigned int size) +unsigned int x86_bsr(unsigned int size, uint64_t src) { int i; @@ -928,7 +933,7 @@ unsigned int x86_bsr(uint64_t src, unsigned int size) exit(0); } -unsigned int x86_bsf(uint64_t src, unsigned int size) +unsigned int x86_bsf(unsigned int size, uint64_t src) { int i; |