From 69c7bac8dbf3364da916551b044b63877df98aba Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Wed, 30 Dec 2015 09:47:24 -0800 Subject: [PATCH] Fixing branch address calculation. --- src/xenia/cpu/ppc/ppc_decode_data.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/cpu/ppc/ppc_decode_data.h b/src/xenia/cpu/ppc/ppc_decode_data.h index c61c26799..76ba0e2ba 100644 --- a/src/xenia/cpu/ppc/ppc_decode_data.h +++ b/src/xenia/cpu/ppc/ppc_decode_data.h @@ -120,7 +120,7 @@ struct PPCDecodeData { struct FormatI { uint32_t LI() const { return bits_.LI; } uint32_t ADDR() const { - return static_cast(XEEXTS16(LI() << 2)) + (AA() ? 0 : address_); + return static_cast(XEEXTS26(LI() << 2)) + (AA() ? 0 : address_); } bool AA() const { return bits_.AA ? true : false; } bool LK() const { return bits_.LK ? true : false; }