diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2016-12-23 20:43:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-23 20:43:09 +0100 |
| commit | 08d16006d57b0a6b4c954adc5da05232bf61d336 (patch) | |
| tree | d91e8ae7603625e1b64cbc9390fa66dc1245c42d | |
| parent | da74f9672cd53999b3b0aecd80108a85e7b5dec4 (diff) | |
| parent | 0b0bc1fe26aff176e11b28366986d9b0bf3d1196 (diff) | |
| download | miasm-08d16006d57b0a6b4c954adc5da05232bf61d336.tar.gz miasm-08d16006d57b0a6b4c954adc5da05232bf61d336.zip | |
Merge pull request #460 from commial/remove-useless-code
Remove useless code
| -rw-r--r-- | miasm2/jitter/codegen.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/miasm2/jitter/codegen.py b/miasm2/jitter/codegen.py index 1ce7ba6d..fff707e5 100644 --- a/miasm2/jitter/codegen.py +++ b/miasm2/jitter/codegen.py @@ -44,15 +44,6 @@ class CGen(object): } """ - CODE_EXCEPTION_MEM_POST_INSTR = r""" - // except fetch mem post instr - if (VM_exception_flag) { - %s = %s; - BlockDst->address = %s; - return JIT_RET_EXCEPTION; - } - """ - CODE_EXCEPTION_AT_INSTR = r""" if (CPU_exception_flag_at_instr) { %s = %s; @@ -61,14 +52,6 @@ class CGen(object): } """ - CODE_EXCEPTION_POST_INSTR = r""" - if (CPU_exception_flag) { - %s = %s; - BlockDst->address = %s; - return JIT_RET_EXCEPTION; - } - """ - CODE_RETURN_EXCEPTION = r""" return JIT_RET_EXCEPTION; """ @@ -266,18 +249,10 @@ class CGen(object): dst = self.dst_to_c(address) return (self.CODE_EXCEPTION_MEM_AT_INSTR % (self.C_PC, dst, dst)).split('\n') - def gen_check_memory_exception_post(self, address): - dst = self.dst_to_c(address) - return (self.CODE_EXCEPTION_MEM_POST_INSTR % (self.C_PC, dst, dst)).split('\n') - def gen_check_cpu_exception(self, address): dst = self.dst_to_c(address) return (self.CODE_EXCEPTION_AT_INSTR % (self.C_PC, dst, dst)).split('\n') - def gen_check_cpu_exception_post(self, address): - dst = self.dst_to_c(address) - return (self.CODE_EXCEPTION_POST_INSTR % (self.C_PC, dst, dst)).split('\n') - def traverse_expr_dst(self, expr, dst2index): """ Generate the index of the destination label for the @expr |