From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPVIM-0002SL-KB for qemu-devel@nongnu.org; Wed, 02 May 2012 04:52:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPVIK-0000fD-4z for qemu-devel@nongnu.org; Wed, 02 May 2012 04:52:22 -0400 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:21829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPVIJ-0000dh-Ew for qemu-devel@nongnu.org; Wed, 02 May 2012 04:52:20 -0400 Date: Wed, 2 May 2012 16:52:07 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7?= Message-ID: <20120502085207.GA77132@cs.nctu.edu.tw> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] API for single stepping an emulated CPU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wacha =?utf-8?B?R+Wijm9y?= Cc: qemu-devel@nongnu.org > I am designing a virtual peripheral for Qemu, for which I need to singl= e step > through the program on the emulated CPU (my peripheral will be some kin= d of a > debugger). My question is: is there an API to execute exactly one instr= uction > in Qemu? I've already found the *_pause and *_resume functions, but the= y are - > as far as I know - not applicable for my task. Just a quick reply. QEMU system mode provides "-singlestep" option. May= be you can start from there, see how the singlestep is done. Regards, chenwj --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) 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