From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=35793 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pf7sd-00069D-Dz for qemu-devel@nongnu.org; Tue, 18 Jan 2011 04:29:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pf7sX-0001LR-Ir for qemu-devel@nongnu.org; Tue, 18 Jan 2011 04:29:35 -0500 Received: from mail-wy0-f173.google.com ([74.125.82.173]:35742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pf7sX-0001Kn-9k for qemu-devel@nongnu.org; Tue, 18 Jan 2011 04:29:29 -0500 Received: by wyg36 with SMTP id 36so6362063wyg.4 for ; Tue, 18 Jan 2011 01:29:28 -0800 (PST) Message-ID: <4D355D75.6070004@gmail.com> Date: Tue, 18 Jan 2011 10:29:25 +0100 From: Stefano Bonifazi MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Changing the content of target cpu registers List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Hi all! I am working on qemu-user (qemu-ppc). I'd like to edit the values of target registers during the execution. Can I do that by simply changing the content of env->gpr[] or do these only contain a copy of the values of the registers? In this last case, where are the real values of the target registers stored so that by modifying them I can alter the behavior of the target code execution? Thank you in advance! Stefano B.