summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikunj A Dadhania2017-01-10 09:50:33 +0100
committerDavid Gibson2017-01-31 00:10:14 +0100
commitc3e4293ac9fcd62d2720b10bb7d1a96805d94fed (patch)
tree908fd22eba13ecfa70d7155198cc0d9a03439013
parentppc: Fix a warning in bcdcfz code and improve BCD_DIG_BYTE macro (diff)
downloadqemu-c3e4293ac9fcd62d2720b10bb7d1a96805d94fed.tar.gz
qemu-c3e4293ac9fcd62d2720b10bb7d1a96805d94fed.tar.xz
qemu-c3e4293ac9fcd62d2720b10bb7d1a96805d94fed.zip
target-ppc: xscvqpdp zero VSR
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--target/ppc/fpu_helper.c2
1 files changed, 1 insertions, 1 deletions
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 */