diff options
Diffstat (limited to 'src/CP15.cpp')
-rw-r--r-- | src/CP15.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/CP15.cpp b/src/CP15.cpp index 8bf68fb..97414db 100644 --- a/src/CP15.cpp +++ b/src/CP15.cpp @@ -57,6 +57,25 @@ void Reset() DTCMSize = 0; } +void Savestate(Savestate* file) +{ + file->Section("CP15"); + + file->Var32(&Control); + + file->Var32(&DTCMSetting); + file->Var32(&ITCMSetting); + + if (!file->Saving) + { + UpdateDTCMSetting(); + UpdateITCMSetting(); + } + + file->VarArray(ITCM, 0x8000); + file->VarArray(DTCM, 0x4000); +} + void UpdateDTCMSetting() { |