> I am designing a virtual peripheral for Qemu, for which I need to single step > through the program on the emulated CPU (my peripheral will be some kind of a > debugger). My question is: is there an API to execute exactly one instruction > in Qemu? I've already found the *_pause and *_resume functions, but they are - > as far as I know - not applicable for my task.
Just a quick reply. QEMU system mode provides "-singlestep" option. Maybe you can start from there, see how the singlestep is done. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj