You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saving and restoring the state of the emulator would be a nice feature to have, it could be used to skip long boot times if the memory size isn't too big.
The state could be captured by saving: The memory, the CPU state, and the state of all devices. Before doing so, all transfers between the emulator and the outside world (such as XHRs) need to have finished.
The text was updated successfully, but these errors were encountered:
Everything that is valid json plus arraybuffers and arraybuffer-views
can be restored automatically (without making changes to other code).
Properties that should not be part of the state buffer needed to be
annotated using a magic `_state_skip` property. Shared arraybuffer views
are broken during restoration and also need to be annotated. Adapters
are not (and should never be) saved.
Current limitations:
- Before restoring, the cpu needs to be initialised with the original
settings. This is not a hard requirement and can be fixed later.
- Pending asynchronous operations are lost. It's a good idea to pause
the cpu before saving the state.
Saving and restoring the state of the emulator would be a nice feature to have, it could be used to skip long boot times if the memory size isn't too big.
The state could be captured by saving: The memory, the CPU state, and the state of all devices. Before doing so, all transfers between the emulator and the outside world (such as XHRs) need to have finished.
The text was updated successfully, but these errors were encountered: