SaveState: Initialize some memory that is saved.
At the very least, will help them compress better. Also good not to leak random memory.
This commit is contained in:
parent
3090360692
commit
fd8a0612fa
8 changed files with 27 additions and 16 deletions
|
@ -544,7 +544,7 @@ public:
|
|||
p.Do(currentMipscallId);
|
||||
p.Do(currentCallbackId);
|
||||
|
||||
// TODO: How do I "version" adding a DoState method to ThreadContext?
|
||||
// TODO: If we want to "version" a DoState method here, we can just use minVer = 0.
|
||||
p.Do(context);
|
||||
|
||||
if (s <= 3)
|
||||
|
@ -1824,6 +1824,8 @@ void ThreadContext::reset()
|
|||
fcr31 = 0x00000e00;
|
||||
hi = 0xDEADBEEF;
|
||||
lo = 0xDEADBEEF;
|
||||
// Just for a clean state.
|
||||
other[5] = 0;
|
||||
}
|
||||
|
||||
void __KernelResetThread(Thread *t, int lowestPriority)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue