mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 13:05:11 +00:00
target/arm: Decode t32 simd 3reg and 2reg_scalar extension
Happily, the bits are in the same places compared to a32. Backports commit 0052087efb8a5c0e29ddc2f59f8476fcdc6495b2 from qemu
This commit is contained in:
parent
e5da25aaf8
commit
85cfb78ea2
|
@ -10956,7 +10956,19 @@ static void disas_thumb2_insn(DisasContext *s, uint32_t insn)
|
||||||
default_exception_el(s));
|
default_exception_el(s));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (((insn >> 24) & 3) == 3) {
|
if ((insn & 0xfe000a00) == 0xfc000800
|
||||||
|
&& arm_dc_feature(s, ARM_FEATURE_V8)) {
|
||||||
|
/* The Thumb2 and ARM encodings are identical. */
|
||||||
|
if (disas_neon_insn_3same_ext(s, insn)) {
|
||||||
|
goto illegal_op;
|
||||||
|
}
|
||||||
|
} else if ((insn & 0xff000a00) == 0xfe000800
|
||||||
|
&& arm_dc_feature(s, ARM_FEATURE_V8)) {
|
||||||
|
/* The Thumb2 and ARM encodings are identical. */
|
||||||
|
if (disas_neon_insn_2reg_scalar_ext(s, insn)) {
|
||||||
|
goto illegal_op;
|
||||||
|
}
|
||||||
|
} else if (((insn >> 24) & 3) == 3) {
|
||||||
/* Translate into the equivalent ARM encoding. */
|
/* Translate into the equivalent ARM encoding. */
|
||||||
insn = (insn & 0xe2ffffff) | ((insn & (1 << 28)) >> 4) | (1 << 28);
|
insn = (insn & 0xe2ffffff) | ((insn & (1 << 28)) >> 4) | (1 << 28);
|
||||||
if (disas_neon_data_insn(s, insn)) {
|
if (disas_neon_data_insn(s, insn)) {
|
||||||
|
|
Loading…
Reference in a new issue