Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K0trw-0008JH-AO for qemu-devel@nongnu.org; Tue, 27 May 2008 03:45:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K0tru-0008IU-Ky for qemu-devel@nongnu.org; Tue, 27 May 2008 03:45:15 -0400 Received: from [199.232.76.173] (port=33225 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0tru-0008IR-Dx for qemu-devel@nongnu.org; Tue, 27 May 2008 03:45:14 -0400 Received: from smtp2.aruba.it ([62.149.128.201]:37426 helo=smtp1.aruba.it) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1K0trt-00054R-Pc for qemu-devel@nongnu.org; Tue, 27 May 2008 03:45:14 -0400 Sender: ricciantonio@slacky.it From: "ricciantonio@slacky.it" Subject: Re: [Qemu-devel] how to get registers value in event of systemcall Date: Tue, 27 May 2008 08:44:52 +0100 Message-id: <483bbbf4.321.6520.210428855@webmaildh1.aruba.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Mulyadi, thanks for your answer. I'll let you know how it works. Regards Antonio ----- Original Message ----- Da : "Mulyadi Santosa" A : qemu-devel@nongnu.org Oggetto : Re: [Qemu-devel] how to get registers value in event of systemcall Data : Tue, 27 May 2008 10:17:00 +0700 > Answering simply from my simple understanding of qemu... > > > On Tue, May 27, 2008 at 12:48 AM, Antonio Ricci > > wrote: Hi all, > > i'd want to understand how to get registers value (eax, > > ebx, etc.) in the guest operating system at the moment > > of a system call. In my opinion i've to work on file > target-i386/translate.c in the case of 0x80 in the > > function disas_insn(DisasContext *s, target_ulong > > pc_start). I can't understand how to get registers > > value. I've just read documentation about translation > but I'm not able to get these informations. > > I think you should go to target-i386/translate.c: > gen_intermediate_code_internal(CPUState *env, > > TranslationBlock *tb, > int > search_pc) > > specifically, in "env" there is "regs" which hold the CPU > registers. > > target-i386/cpu.h contains the constants that show you the > array structure of that "regs". > > Good luck.. > > regards, > > > Mulyadi. > >