Merge pull request #6892 from lioncash/mask

Interpreter_Branch: Make type of the bitmask in rfi a u32 instead of int
This commit is contained in:
Tilka 2018-05-18 19:20:03 +01:00 committed by GitHub
commit 24eeffea7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ void Interpreter::rfi(UGeckoInstruction inst)
{
// Restore saved bits from SRR1 to MSR.
// Gecko/Broadway can save more bits than explicitly defined in ppc spec
const int mask = 0x87C0FFFF;
const u32 mask = 0x87C0FFFF;
MSR.Hex = (MSR.Hex & ~mask) | (SRR1 & mask);
// MSR[13] is set to 0.
MSR.Hex &= 0xFFFBFFFF;