From: Paolo Bonzini <pbonz...@redhat.com>

It must return 8 and place 8 in XER, but the current code uses
i directly which is 9 at this point of the code.

Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Reviewed-by: Tom Musta <tommu...@gmail.com>
Signed-off-by: Alexander Graf <ag...@suse.de>
---
 target-ppc/int_helper.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target-ppc/int_helper.c b/target-ppc/int_helper.c
index 29ff4f6..83c1ad0 100644
--- a/target-ppc/int_helper.c
+++ b/target-ppc/int_helper.c
@@ -2556,6 +2556,7 @@ target_ulong helper_dlmzb(CPUPPCState *env, target_ulong 
high,
         }
         i++;
     }
+    i = 8;
     if (update_Rc) {
         env->crf[0] = 0x2;
     }
-- 
1.8.1.4


Reply via email to