diff options
| author | Ajax <commial@gmail.com> | 2017-01-05 14:54:18 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2017-01-05 14:55:45 +0100 |
| commit | 33ba096fe035bc1c6db77bf9c4f2233b09e1300b (patch) | |
| tree | 55c2c6f0f28d49a167c2ff1d507f2ab7b653352b /miasm2/jitter/llvmconvert.py | |
| parent | 17f64ffadffa1de30cbe18223a7c6a1d0916fac1 (diff) | |
| download | miasm-33ba096fe035bc1c6db77bf9c4f2233b09e1300b.tar.gz miasm-33ba096fe035bc1c6db77bf9c4f2233b09e1300b.zip | |
LLVM: add support for cpuid operation
Diffstat (limited to '')
| -rw-r--r-- | miasm2/jitter/llvmconvert.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/miasm2/jitter/llvmconvert.py b/miasm2/jitter/llvmconvert.py index bc1c48ca..cfe89059 100644 --- a/miasm2/jitter/llvmconvert.py +++ b/miasm2/jitter/llvmconvert.py @@ -228,6 +228,9 @@ class LLVMContext_JIT(LLVMContext): "args": [p8, itype, itype]}}) + self.add_fc({"cpuid": {"ret": itype, + "args": [itype, + itype]}}) for k in [8, 16]: self.add_fc({"bcdadd_%s" % k: {"ret": LLVMType.IntType(k), @@ -327,6 +330,7 @@ class LLVMFunction(): # Operation translation ## Basics op_translate = {'parity': 'parity', + 'cpuid': 'cpuid', } ## Add the size as first argument op_translate_with_size = {'<<<': 'rot_left', |