mirror of
https://github.com/qemu/qemu.git
synced 2025-08-07 23:16:19 +00:00
ppc: fix result of DLMZB when no zero bytes are found
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 <pbonzini@redhat.com> Reviewed-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
72189ea41d
commit
ebbd8b40a9
@ -2556,6 +2556,7 @@ target_ulong helper_dlmzb(CPUPPCState *env, target_ulong high,
|
|||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
i = 8;
|
||||||
if (update_Rc) {
|
if (update_Rc) {
|
||||||
env->crf[0] = 0x2;
|
env->crf[0] = 0x2;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user