fuzz_with_unicorn: Skip instructions that need to be interpreted

This commit is contained in:
MerryMage 2018-02-03 01:22:40 +00:00
parent 4be55b8b84
commit ca38225e08
3 changed files with 4 additions and 2 deletions

View file

@ -66,6 +66,8 @@ restart:
bool should_continue = A64::TranslateSingleInstruction(block, location, instruction);
if (!should_continue && !is_last_inst)
goto restart;
if (!should_continue && boost::get<IR::Term::Interpret>(&block.GetTerminal()))
goto restart;
for (const auto& ir_inst : block)
if (ir_inst.GetOpcode() == IR::Opcode::A64ExceptionRaised || ir_inst.GetOpcode() == IR::Opcode::A64CallSupervisor)
goto restart;