jit: Custom instructions can be block boundaries
This commit is contained in:
parent
dc37bac547
commit
60d4a28e2c
|
@ -312,7 +312,8 @@ function gen_instruction_body_after_fixed_g(encoding, size)
|
|||
reg_postfix
|
||||
),
|
||||
},
|
||||
}
|
||||
},
|
||||
instruction_postfix
|
||||
);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -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, _) => {
|
||||
|
|
Loading…
Reference in a new issue