From cbbccffc7acebb3256f58b232b4f9d819f9596ec Mon Sep 17 00:00:00 2001 From: pbrook Date: Tue, 17 Mar 2009 12:19:58 +0000 Subject: [PATCH] Fix ARM quadword VDUP (core register). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6857 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-arm/translate.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 7c3d4724d4..f7f2a8d6f4 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -2783,10 +2783,12 @@ static int disas_vfp_insn(CPUState * env, DisasContext *s, uint32_t insn) } else if (size == 1) { gen_neon_dup_low16(tmp); } - tmp2 = new_tmp(); - tcg_gen_mov_i32(tmp2, tmp); - neon_store_reg(rn, 0, tmp2); - neon_store_reg(rn, 1, tmp); + for (n = 0; n <= pass * 2; n++) { + tmp2 = new_tmp(); + tcg_gen_mov_i32(tmp2, tmp); + neon_store_reg(rn, n, tmp2); + } + neon_store_reg(rn, n, tmp); } else { /* VMOV */ switch (size) {