Fixing branch address calculation.

This commit is contained in:
Ben Vanik 2015-12-30 09:47:24 -08:00
parent 3c332ef1f5
commit 69c7bac8db
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ struct PPCDecodeData {
struct FormatI { struct FormatI {
uint32_t LI() const { return bits_.LI; } uint32_t LI() const { return bits_.LI; }
uint32_t ADDR() const { uint32_t ADDR() const {
return static_cast<uint32_t>(XEEXTS16(LI() << 2)) + (AA() ? 0 : address_); return static_cast<uint32_t>(XEEXTS26(LI() << 2)) + (AA() ? 0 : address_);
} }
bool AA() const { return bits_.AA ? true : false; } bool AA() const { return bits_.AA ? true : false; }
bool LK() const { return bits_.LK ? true : false; } bool LK() const { return bits_.LK ? true : false; }