From c3e4293ac9fcd62d2720b10bb7d1a96805d94fed Mon Sep 17 00:00:00 2001 From: Nikunj A Dadhania Date: Tue, 10 Jan 2017 14:20:33 +0530 Subject: [PATCH] target-ppc: xscvqpdp zero VSR Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c index 8c8e3c5b13..77f68e9dcd 100644 --- a/target/ppc/fpu_helper.c +++ b/target/ppc/fpu_helper.c @@ -2787,7 +2787,7 @@ void helper_xscvqpdp(CPUPPCState *env, uint32_t opcode) ppc_vsr_t xt, xb; getVSR(rB(opcode) + 32, &xb, env); - getVSR(rD(opcode) + 32, &xt, env); + memset(&xt, 0, sizeof(xt)); if (unlikely(Rc(opcode) != 0)) { /* TODO: Support xscvqpdpo after round-to-odd is implemented */