OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56907d7
)
target-arm: Handle UNDEF cases for VDUP (scalar)
author
Juha Riihimäki
<juha.riihimaki@nokia.com>
Mon, 11 Apr 2011 15:26:23 +0000
(16:26 +0100)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Tue, 12 Apr 2011 21:33:33 +0000
(23:33 +0200)
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>
target-arm/translate.c
patch
|
blob
|
history
diff --git
a/target-arm/translate.c
b/target-arm/translate.c
index
be25c8f
..
6190028
100644
(file)
--- 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 {