Skip to contentSkip to conversation

Saving and restoring CPU state

Qemu-devel eady 1 participant 1 message Apr 8, 2007

lore
Share & tools
lore

eady

author
#0 lore raw

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