mirror of https://github.com/proxmox/mirror_qemu
target/mips: Do not abort on invalid instruction
On real hardware an invalid instruction doesn't halt the world, but usually triggers a RESERVED INSTRUCTION exception. TCG guest code shouldn't abort QEMU anyway. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210617174323.2900831-2-f4bug@amsat.org>master
parent
a071578b93
commit
05d9d0359e
|
@ -12151,8 +12151,8 @@ static void gen_branch(DisasContext *ctx, int insn_bytes)
|
||||||
tcg_gen_lookup_and_goto_ptr();
|
tcg_gen_lookup_and_goto_ptr();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "unknown branch 0x%x\n", proc_hflags);
|
LOG_DISAS("unknown branch 0x%x\n", proc_hflags);
|
||||||
abort();
|
gen_reserved_instruction(ctx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue