diff options
| -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 |