diff options
author | Juha Riihimäki <juha.riihimaki@nokia.com> | 2011-04-11 16:26:23 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-04-12 23:33:33 +0200 |
commit | 133da6aae1edc0118fbac8cd9ba46dff69ddd5c9 (patch) | |
tree | 981d0f49b547a3e8595c6ba2867968eb2f6e3a18 /target-arm | |
parent | 56907d776e1133bf4f633e4e542267d23d2c09cf (diff) | |
download | qemu-133da6aae1edc0118fbac8cd9ba46dff69ddd5c9.tar.gz qemu-133da6aae1edc0118fbac8cd9ba46dff69ddd5c9.tar.bz2 qemu-133da6aae1edc0118fbac8cd9ba46dff69ddd5c9.zip |
target-arm: Handle UNDEF cases for VDUP (scalar)
Handle the UNDEF cases for VDUP(scalar):
imm4 == x000
Q == 1 && Vd<0> == 1
Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-arm')
-rw-r--r-- | target-arm/translate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target-arm/translate.c b/target-arm/translate.c index be25c8f33a..6190028d08 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -6057,6 +6057,9 @@ static int disas_neon_data_insn(CPUState * env, DisasContext *s, uint32_t insn) tcg_temp_free_i32(tmp); } else if ((insn & 0x380) == 0) { /* VDUP */ + if ((insn & (7 << 16)) == 0 || (q && (rd & 1))) { + return 1; + } if (insn & (1 << 19)) { tmp = neon_load_reg(rm, 1); } else { |