public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: Dave Brolley <brolley@redhat.com>
To: cgen@sources.redhat.com
Subject: [patch][commit] Collection of profiling information
Date: Tue, 09 May 2006 18:16:00 -0000	[thread overview]
Message-ID: <4460DC7B.2090206@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

Hi,

I've committed the attached patch which adds a missing bit of code 
generation needed for implementing pipeline models. It is similar to 
code already committed elsewhere for this purpose and was taken from the 
sim generator. Tested on an internal port which exposed the problem.

Dave

[-- Attachment #2: cgen-profile.ChangeLog --]
[-- Type: text/plain, Size: 140 bytes --]

2006-05-09  Dave Brolley  <brolley@redhat.com>

	* sid-cpu.scm (-gen-scache-semantic-fn): Generate code to set
	abuf->written if profiling.

[-- Attachment #3: cgen-profile.patch.txt --]
[-- Type: text/plain, Size: 1300 bytes --]

? cgen/string
Index: cgen/sid-cpu.scm
===================================================================
RCS file: /cvs/src/src/cgen/sid-cpu.scm,v
retrieving revision 1.15
diff -c -p -r1.15 sid-cpu.scm
*** cgen/sid-cpu.scm	28 Dec 2005 18:59:24 -0000	1.15
--- cgen/sid-cpu.scm	9 May 2006 18:05:32 -0000
***************
*** 1,5 ****
  ; CPU family related simulator generator, excluding decoding and model support.
! ; Copyright (C) 2000, 2002, 2003, 2005 Red Hat, Inc.
  ; This file is part of CGEN.
  
  ; ***********
--- 1,5 ----
  ; CPU family related simulator generator, excluding decoding and model support.
! ; Copyright (C) 2000, 2002, 2003, 2005, 2006 Red Hat, Inc.
  ; This file is part of CGEN.
  
  ; ***********
*************** using namespace cgen;
*** 748,753 ****
--- 748,761 ----
       "\n"
       (gen-semantic-code insn)
       "\n"
+      ; Only update what's been written if some are conditionally written.
+      ; Otherwise we know they're all written so there's no point in
+      ; keeping track.
+      (if (or (with-profile?) (with-parallel-write?))
+ 	 (if (-any-cond-written? (insn-sfmt insn))
+ 	     "  abuf->written = written;\n"
+ 	     "")
+ 	 "")
       (if cti?
  	 "  current_cpu->done_cti_insn (npc, status);\n"
  	 "  current_cpu->done_insn (npc, status);\n")

                 reply	other threads:[~2006-05-09 18:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4460DC7B.2090206@redhat.com \
    --to=brolley@redhat.com \
    --cc=cgen@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).