浏览代码

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>
Nikunj A Dadhania 8 年之前
父节点
当前提交
c3e4293ac9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      target/ppc/fpu_helper.c

+ 1 - 1
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 */