From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 871 invoked by alias); 23 May 2009 06:17:29 -0000 Received: (qmail 862 invoked by uid 22791); 23 May 2009 06:17:28 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from web36202.mail.mud.yahoo.com (HELO web36202.mail.mud.yahoo.com) (209.191.68.228) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 23 May 2009 06:17:23 +0000 Received: (qmail 49690 invoked by uid 60001); 23 May 2009 06:17:22 -0000 Message-ID: <130576.31017.qm@web36202.mail.mud.yahoo.com> Received: from [123.238.26.52] by web36202.mail.mud.yahoo.com via HTTP; Fri, 22 May 2009 23:17:21 PDT Date: Sat, 23 May 2009 06:17:00 -0000 From: paawan oza Subject: Re: push and pop of FPU stack ; record st registers To: Hui Zhu Cc: gdb ml MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00156.txt.bz2 yes. I can record all st0 to st7 registers. that is not a problem. but, at every insn which push/pop FPU stack, if we record all st0 to st7, we will be occupying too much of record memory. (memory usage will be more for our records) I was just thinking of optimizing it with some cache. but at the moment I think I can go ahead with plain implementation of recording st0 to st7. Regards, Oza. --- On Sat, 5/23/09, Hui Zhu wrote: > From: Hui Zhu > Subject: Re: push and pop of FPU stack ; record st registers > To: "paawan oza" > Cc: "gdb ml" > Date: Saturday, May 23, 2009, 9:34 AM > You cannot record st0 to st7? > > Hui > > On Fri, May 22, 2009 at 23:43, paawan oza > wrote: > > > > Hi, > > > > the instructions such as; > > fld1, which pushes fpu stack and insn faddp pops > registers stack, > > we need to record all st0 to st7 registers. because > all will be changed on push/pop. > > as pushing/popping changes all the registers, at such > insns (which does push/pop) we record all st0 to st7 > registers that may affect the performance. > > > > currently I can not think of any alternative > > (may be we cache registers all the time and we record > only those which may change) but by doing that we only save > memory. performance is still question :( > > > > Does anybody have any other suggestion ? > > > > Regards, > > Oza. > > > > > > > > >