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:
parent
3b5faf90f3
commit
a720596771
|
@ -633,7 +633,7 @@ static void WriteRegister()
|
||||||
}
|
}
|
||||||
else if (id >= 88 && id < 104)
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue