From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24540 invoked by alias); 14 May 2009 07:11:10 -0000 Received: (qmail 24530 invoked by uid 22791); 14 May 2009 07:11:08 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.185) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 May 2009 07:11:03 +0000 Received: by ti-out-0910.google.com with SMTP id a1so113646tib.12 for ; Thu, 14 May 2009 00:11:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.110.52.1 with SMTP id z1mr124085tiz.23.1242285060384; Thu, 14 May 2009 00:11:00 -0700 (PDT) In-Reply-To: <944401.11353.qm@web36204.mail.mud.yahoo.com> References: <944401.11353.qm@web36204.mail.mud.yahoo.com> Date: Thu, 14 May 2009 07:11:00 -0000 Message-ID: Subject: Re: MMX & Floating point insn suport for reversible debugging From: Hui Zhu To: paawan oza Cc: gdb ml Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00072.txt.bz2 On Thu, May 14, 2009 at 00:44, paawan oza wrote: > > I have gone through i387-tdep.c. > and I have come up with following doubts. > > =A0here I start adding floating point register support. > =A0I think curerntly it records the memory > > =A0so remaining thing for floating point is store > =A0registers st0 to st7. > > >> > code to be added here... >> > =A0 /* floats */ >> > =A0 =A0 =A0/* It just record the memory change of >> instrcution. */ >> > =A0 =A0case 0xd8: >> > =A0 =A0case 0xd9: >> > =A0 =A0case 0xda: >> > =A0 =A0case 0xdb: >> > =A0 =A0case 0xdc: >> > =A0 =A0case 0xdd: >> > =A0 =A0case 0xde: >> > =A0 =A0case 0xdf: >> > >> > > =A0 =A0do we need to collect affect FPU flags !! If gdb can output and set this flags, you need to do it. And I suggest you post more clear information about your question that you know when you have question with it. It will make people reply you mail easyly, right? :) > > =A0 =A0and another thing is ; > =A0 =A0take floating point insn > =A0 =A0opcode =A0mnemnic =A0 desc > =A0 =A0DE F9 =A0 FDIVP =A0 =A0 Divide ST(1) by ST(0), > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0store result in ST(1), and > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0pop the register stack. > > I do not think code is taking care of 2 bytes floating > instruction.. > I suspoe ModR/M and SIB byte encoding is taken care > with respect to floating point. Why you can't put the code for "DE F9" in: >> > case 0xde: Thanks, Hui