]> Git Repo - qemu.git/commitdiff
ppc: fix result of DLMZB when no zero bytes are found
authorPaolo Bonzini <[email protected]>
Thu, 28 Aug 2014 17:15:03 +0000 (19:15 +0200)
committerAlexander Graf <[email protected]>
Tue, 4 Nov 2014 22:26:10 +0000 (23:26 +0100)
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 <[email protected]>
Reviewed-by: Tom Musta <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
target-ppc/int_helper.c

index 29ff4f6e4ee0c579837cc2c87689ce10f3b34d9d..83c1ad0654865471ae9f39ab928b2988a866c71c 100644 (file)
@@ -2556,6 +2556,7 @@ target_ulong helper_dlmzb(CPUPPCState *env, target_ulong high,
         }
         i++;
     }
+    i = 8;
     if (update_Rc) {
         env->crf[0] = 0x2;
     }
This page took 0.023628 seconds and 4 git commands to generate.