From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4590 invoked by alias); 23 May 2009 12:01:12 -0000 Received: (qmail 4219 invoked by uid 22791); 23 May 2009 12:01:11 -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 rv-out-0708.google.com (HELO rv-out-0708.google.com) (209.85.198.244) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 23 May 2009 12:01:05 +0000 Received: by rv-out-0708.google.com with SMTP id k29so760619rvb.48 for ; Sat, 23 May 2009 05:01:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.110.21.17 with SMTP id 17mr143840tiu.5.1243080062010; Sat, 23 May 2009 05:01:02 -0700 (PDT) In-Reply-To: <130576.31017.qm@web36202.mail.mud.yahoo.com> References: <130576.31017.qm@web36202.mail.mud.yahoo.com> Date: Sat, 23 May 2009 12:01:00 -0000 Message-ID: Subject: Re: push and pop of FPU stack ; record st registers From: Hui Zhu To: paawan oza Cc: gdb ml Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/msg00157.txt.bz2 I think make the function can run is the first job, Hui On Sat, May 23, 2009 at 14:17, paawan oza wrote: > > 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. >> > >> > >> > >> > >> > > > >