qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [PULL 03/33] ppc: fix result of DLMZB when no zero bytes are


From: Alexander Graf
Subject: [Qemu-ppc] [PULL 03/33] ppc: fix result of DLMZB when no zero bytes are found
Date: Tue, 4 Nov 2014 20:26:21 +0100

From: Paolo Bonzini <address@hidden>

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 <address@hidden>
Reviewed-by: Tom Musta <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
---
 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

[Prev in Thread] Current Thread [Next in Thread]