OSDN Git Service

bctr and blr must ignore the two lsb
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 4 Jun 2005 22:19:02 +0000 (22:19 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 4 Jun 2005 22:19:02 +0000 (22:19 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1438 c046a42c-6fe2-441c-8c8c-71466251a162

target-ppc/op.c

index 6ae7a52..8c8021e 100644 (file)
@@ -446,7 +446,7 @@ PPC_OP(b)
 
 PPC_OP(b_T1)
 {
-    regs->nip = T1;
+    regs->nip = T1 & ~3;
 }
 
 PPC_OP(btest)