From: Peter Maydell Date: Mon, 11 Apr 2011 15:26:19 +0000 (+0100) Subject: target-arm: Handle UNDEF cases for VEXT X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~17^2~2367 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52579ea1c201ce10a5fe6f5734373543e462e345;p=sdk%2Femulator%2Fqemu.git target-arm: Handle UNDEF cases for VEXT VEXT must UNDEF if Q == 1 && (Vd<0> == 1 || Vr<0> == 1 || Vm<0> == 1) Signed-off-by: Peter Maydell Signed-off-by: Aurelien Jarno --- diff --git a/target-arm/translate.c b/target-arm/translate.c index 15c2015d90..f47e5ea487 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -5514,6 +5514,10 @@ static int disas_neon_data_insn(CPUState * env, DisasContext *s, uint32_t insn) if (imm > 7 && !q) return 1; + if (q && ((rd | rn | rm) & 1)) { + return 1; + } + if (imm == 0) { neon_load_reg64(cpu_V0, rn); if (q) {