PowerPC: Add reservation monitor to save state

This commit is contained in:
CrystalGamma committed 2021-07-21 12:14:07 +02:00
1 parent d763d693e8
commit c991904e04
3 files changed
+5 -3

No files matched your search

+3
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)
+1 -2
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;