James Mastros wrote:
>
> Hey all. I'm currently working on a freeze/thaw system for plex86, so you
> can restart your session from exactly where you left off.
>
> Curretly, the format is 0x86 4 0x86 FREEZE 0x01 (magic number: read as x86
> for x86 freeze, version number 1), followed by (long)sizeof(cpu_t), cpu_t,
> (long)megs, dump of the memory. Is there anything else that I should be
> saving? I know that the bochs plugin has a lot of state in it, but I
> can't find a clean way to save it.
>
> As to restoring, putting everything back where I put it should work,
> no? (Using the proper _read and _write / _get and _set functions, of
> course.)
Having complete save/restore functionality is quite interesting.
It's also more involved than just dumping the above info to a file.
You have to save the state of all devices, timing framework, info
about open files, and other info.
I don't think it's a good idea to enhance plex86 architecture
to handle this yet. There are other more pressing and modular
tasks we should complete first.
There is also someone who is interested in helping out with this,
who has done this before. Best to make use of their work already
done and defined in this area.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Kevin Lawton [EMAIL PROTECTED]
MandrakeSoft, Inc. Plex86 developer
http://www.linux-mandrake.com/ http://www.plex86.org/