mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 07:41:01 +00:00
target/arm: Generate UNDEF for 32-bit Thumb2 insns
The refactoring of commit 296e5a0a6c3935 has a nasty bug: it accidentally dropped the generation of code to raise the UNDEF exception when disas_thumb2_insn() returns nonzero. This means that 32-bit Thumb2 instruction patterns that ought to UNDEF just act like nops instead. This is likely to break any number of things, including the kernel's "disable the FPU and use the UNDEF exception to identify when to turn it back on again" trick. Backports commit 7472e2efb049ea65a6a5e7261b78ebf5c561bc2f from qemu
This commit is contained in:
parent
6285ed170e
commit
352a7b2501
|
@ -12466,7 +12466,10 @@ static void thumb_tr_translate_insn(DisasContextBase *dcbase, CPUState *cpu)
|
|||
if (is_16bit) {
|
||||
disas_thumb_insn(dc, insn);
|
||||
} else {
|
||||
disas_thumb2_insn(dc, insn);
|
||||
if (disas_thumb2_insn(dc, insn)) {
|
||||
gen_exception_insn(dc, 4, EXCP_UDEF, syn_uncategorized(),
|
||||
default_exception_el(dc));
|
||||
}
|
||||
}
|
||||
|
||||
/* Advance the Thumb condexec condition. */
|
||||
|
|
Loading…
Reference in a new issue