GDB Stub: Fix typo mixing ppcState.spr and ppcState.sr

This resulted in an out-of-bounds array access, since sr is only 16 entries long and SPR_IBAT0U evaluates to 528.
This commit is contained in:
Pokechu22 2022-01-16 21:20:56 -08:00
parent 3b5faf90f3
commit a720596771
1 changed files with 1 additions and 1 deletions

View File

@ -633,7 +633,7 @@ static void WriteRegister()
}
else if (id >= 88 && id < 104)
{
PowerPC::ppcState.sr[SPR_IBAT0U + id - 88] = re32hex(bufptr);
PowerPC::ppcState.spr[SPR_IBAT0U + id - 88] = re32hex(bufptr);
}
else
{