From ab0bcf85353efcb5b6c29488ed89100eeee97c73 Mon Sep 17 00:00:00 2001 From: Fabian Date: Fri, 2 Feb 2018 13:10:56 -0500 Subject: [PATCH] Iterate in interpreted mode until a jump is found --- src/native/cpu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/native/cpu.c b/src/native/cpu.c index 1c47cb1b..811343fa 100644 --- a/src/native/cpu.c +++ b/src/native/cpu.c @@ -539,6 +539,15 @@ static void jit_run_interpreted(int32_t phys_addr) (*timestamp_counter)++; run_instruction(opcode | !!*is_32 << 8); + while(!jit_jump) + { + previous_ip[0] = instruction_pointer[0]; + (*timestamp_counter)++; + + int32_t opcode = read_imm8(); + run_instruction(opcode | !!*is_32 << 8); + } + profiler_end(P_RUN_INTERPRETED); }