From c9fb531ab2a78e731a0b450017fb5e92de79f8f8 Mon Sep 17 00:00:00 2001 From: pbrook Date: Mon, 3 Nov 2008 19:09:29 +0000 Subject: VFP fnmsc negative zero fix. Signed-off-by: Paul Brook git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5610 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-arm/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index e6c1e46149..ab8cee5cd5 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -3057,9 +3057,9 @@ static int disas_vfp_insn(CPUState * env, DisasContext *s, uint32_t insn) break; case 3: /* nmsc: -fd - (fn * fm) */ gen_vfp_mul(dp); - gen_mov_F1_vreg(dp, rd); - gen_vfp_add(dp); gen_vfp_neg(dp); + gen_mov_F1_vreg(dp, rd); + gen_vfp_sub(dp); break; case 4: /* mul: fn * fm */ gen_vfp_mul(dp); -- cgit v1.2.3