On Thu, Dec 07, 2000 at 02:31:14PM -0500, 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.

Hmm...  Do we need an entirely-binary format here?  What about:

#plex86-dump
version=1

# Registers
AX=0x0004323
...
...

# Heap
heap-encoding=gzip
heap-length=12345678

HEAP
<binary data for heap here>

Presumeably, the registers and other items will take up a fairly
insignificant amount of space, compared to the heap, so there's no
real loss in making it readable.

-jeff

Reply via email to