diff options
| author | Ajax <commial@gmail.com> | 2016-12-22 23:45:42 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2016-12-22 23:45:42 +0100 |
| commit | 0b0bc1fe26aff176e11b28366986d9b0bf3d1196 (patch) | |
| tree | c81e77d092ae0ab8dee7e0d991c825e2db05f7d3 /miasm2/jitter/codegen.py | |
| parent | 50661f59da48540a6d87ab5f42c41e761a9c11d8 (diff) | |
| download | miasm-0b0bc1fe26aff176e11b28366986d9b0bf3d1196.tar.gz miasm-0b0bc1fe26aff176e11b28366986d9b0bf3d1196.zip | |
Codegen: remove useless code
Diffstat (limited to 'miasm2/jitter/codegen.py')
| -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 |