jit: Custom instructions can be block boundaries

This commit is contained in:
Fabian 2018-08-21 12:25:32 -05:00
parent dc37bac547
commit 60d4a28e2c
2 changed files with 3 additions and 1 deletions

View file

@ -312,7 +312,8 @@ function gen_instruction_body_after_fixed_g(encoding, size)
reg_postfix
),
},
}
},
instruction_postfix
);
}
else

View file

@ -991,6 +991,7 @@ fn jit_generate_module(
builder.commit_instruction_body_to_cs();
let invalid_connection_to_next_block = block.end_addr != cpu.eip;
dbg_assert!(!invalid_connection_to_next_block);
match (&block.ty, invalid_connection_to_next_block) {
(_, true) | (BasicBlockType::Exit, _) => {