PowerPC: Add reservation monitor to save state

This commit is contained in:
CrystalGamma
2021-07-13 10:36:17 +02:00
parent d763d693e8
commit c991904e04
3 changed files with 5 additions and 3 deletions

View File

@ -125,6 +125,9 @@ void DoState(PointerWrap& p)
p.Do(ppcState.pagetable_base);
p.Do(ppcState.pagetable_hashmask);
p.Do(ppcState.reserve);
p.Do(ppcState.reserve_address);
ppcState.iCache.DoState(p);
if (p.GetMode() == PointerWrap::MODE_READ)

View File

@ -167,8 +167,7 @@ struct PowerPCState
InstructionCache iCache;
// TODO: These should really be in the save state, although it's unlikely to matter much.
// They are for lwarx and its friend stwcxd.
// Reservation monitor for lwarx and its friend stwcxd.
bool reserve;
u32 reserve_address;