qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Saving and restoring CPU state


From: eady
Subject: [Qemu-devel] Saving and restoring CPU state
Date: Thu, 12 Apr 2007 11:16:35 -0500
User-agent: Thunderbird 1.5.0.9 (X11/20070104)

I'm still looking for any suggestions on how to save and restore the target cpu state from within a custom instruction in op.c. I basically want a custom instruction to save the cpu state to a data structure and then continue on normally, a second custom instruction would then be used to restore the cpu state from the saved data structure at a later time thereby rolling back the execution of the cpu. I've tried saving and restoring env->eip within my custom instructions but this has no effect.

Thanks,
Nuri
--- Begin Message --- Subject: [Qemu-devel] Saving and restoring CPU state Date: Sun, 08 Apr 2007 16:38:14 -0500 User-agent: Thunderbird 1.5.0.9 (X11/20070104) I'm experimenting a bit with QEMU and am in need of a way to save and restore X86 CPU state including the pc so that the processor state can be rolled back to re execute from the previous point. I've found the functions "cpu_x86_fsave" and "cpu_restore_state" but do not understand them well enough to use them. Does anyone have tips on how to store the processor state in an auxiliary data structure and then restore it at a later point?

Thanks
Nuri



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]