From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avqwr-0006va-Rx for qemu-devel@nongnu.org; Thu, 28 Apr 2016 14:46:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avqwo-0007xC-LG for qemu-devel@nongnu.org; Thu, 28 Apr 2016 14:46:01 -0400 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:35843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avqwo-0007x0-2Z for qemu-devel@nongnu.org; Thu, 28 Apr 2016 14:45:58 -0400 Received: by mail-wm0-x231.google.com with SMTP id n129so322515wmn.1 for ; Thu, 28 Apr 2016 11:45:57 -0700 (PDT) References: <20160426093142.GD10650@stefanha-x1.localdomain> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: Date: Thu, 28 Apr 2016 19:45:59 +0100 Message-ID: <87h9elefmg.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] emulation details of qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tutu sky Cc: Stefan Hajnoczi , "qemu-devel@nongnu.org" tutu sky writes: > Thanks a lot Stefan, > But if i want to change the content of a register during run time in > debug mode, what should i do? is it possible at first? Using the gdbstub sure you can change the register values when the machine is halted. > > Regards. > ________________________________________ > From: Stefan Hajnoczi > Sent: Tuesday, April 26, 2016 9:31 AM > To: tutu sky > Cc: qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] emulation details of qemu > > On Sat, Apr 23, 2016 at 06:36:39AM +0000, tutu sky wrote: >> I want to know that is it possible to access registers or micro-architectural part of a core/cpu in qemu during run time? > > Yes. How and to what extent depends on whether you are using TCG, KVM, > or TCI. QEMU also has gdbstub support so you can single-step execution > and access CPU registers. > > Stefan -- Alex Bennée