MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / PostLoadPrep

Function PostLoadPrep

pcsx2/SaveState.cpp:67–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67static void PostLoadPrep()
68{
69 resetCache();
70// WriteCP0Status(cpuRegs.CP0.n.Status.val);
71 for (int i = 0; i < 48; i++)
72 {
73 if (std::memcmp(&s_tlb_backup[i], &tlb[i], sizeof(tlbs)) != 0)
74 {
75 UnmapTLB(s_tlb_backup[i], i);
76 MapTLB(tlb[i], i);
77 }
78 }
79
80 if (EmuConfig.Gamefixes.GoemonTlbHack) GoemonPreloadTlb();
81 CBreakPoints::SetSkipFirst(BREAKPOINT_EE, 0);
82 CBreakPoints::SetSkipFirst(BREAKPOINT_IOP, 0);
83
84 UpdateVSyncRate(true);
85
86 if (VMManager::Internal::HasBootedELF())
87 R5900SymbolImporter.OnElfLoadedInMemory();
88}
89
90// --------------------------------------------------------------------------------------
91// SaveStateBase (implementations)

Callers 1

SaveState_UnzipFromDiskFunction · 0.85

Calls 6

resetCacheFunction · 0.85
UnmapTLBFunction · 0.85
MapTLBFunction · 0.85
GoemonPreloadTlbFunction · 0.85
UpdateVSyncRateFunction · 0.85
OnElfLoadedInMemoryMethod · 0.80

Tested by

no test coverage detected