public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: Dave Brolley <brolley@redhat.com>
To: cgen@sources.redhat.com, sid@sources.redhat.com
Subject: [patch][commit] Parallel Write Fixes
Date: Fri, 29 Jul 2005 19:29:00 -0000	[thread overview]
Message-ID: <42EA839B.6090009@redhat.com> (raw)

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

Hi,

I've committed the attached patch which adds some declarttions needed by 
ports using the new parallel write support. Tested on an internal port. 
No effect on existing ports.

Dave

[-- Attachment #2: cgen-parallel.patch.ChangeLog --]
[-- Type: text/plain, Size: 329 bytes --]

2005-07-29  Dave Brolley  <brolley@redhat.com>

	* sid-cpu.scm (-gen-scache-semantic-fn): Generate a declation of 'written'
	if with-profile or with-parallel-write.
	(cgen-semantics.cxx): Make the @prefix@ namespace available if with-parallel.
	* operand.scm (op:new-mode): Convert (obj:name op) to a string for
	string-append.


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

Index: cgen/sid-cpu.scm
===================================================================
RCS file: /cvs/src/src/cgen/sid-cpu.scm,v
retrieving revision 1.12
diff -c -p -r1.12 sid-cpu.scm
*** cgen/sid-cpu.scm	15 Jun 2005 21:28:19 -0000	1.12
--- cgen/sid-cpu.scm	29 Jul 2005 19:22:14 -0000
*************** using namespace cgen;
*** 736,742 ****
       (gen-define-field-macro (insn-sfmt insn))
       "  sem_status status = SEM_STATUS_NORMAL;\n"
       "  @prefix@_scache* abuf = sem;\n"
! 
       ; The address of this insn, needed by extraction and semantic code.
       ; Note that the address recorded in the cpu state struct is not used.
       ; For faster engines that copy will be out of date.
--- 736,745 ----
       (gen-define-field-macro (insn-sfmt insn))
       "  sem_status status = SEM_STATUS_NORMAL;\n"
       "  @prefix@_scache* abuf = sem;\n"
!      ; Unconditionally written operands are not recorded here.
!      (if (or (with-profile?) (with-parallel-write?))
! 	 "  unsigned long long written = 0;\n"
! 	 "")
       ; The address of this insn, needed by extraction and semantic code.
       ; Note that the address recorded in the cpu state struct is not used.
       ; For faster engines that copy will be out of date.
*************** using namespace cgen;
*** 792,799 ****
  #endif
  #include \"@cpu@.h\"
  
! using namespace @cpu@; // FIXME: namespace organization still wip
! 
  #define GET_ATTR(name) GET_ATTR_##name ()
  
  \n"
--- 795,805 ----
  #endif
  #include \"@cpu@.h\"
  
! using namespace @cpu@; // FIXME: namespace organization still wip\n")
!   (if (with-parallel?)
!       (string-write "\
! using namespace @prefix@; // FIXME: namespace organization still wip\n"))
!   (string-write "\
  #define GET_ATTR(name) GET_ATTR_##name ()
  
  \n"

                 reply	other threads:[~2005-07-29 19:29 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=42EA839B.6090009@redhat.com \
    --to=brolley@redhat.com \
    --cc=cgen@sources.redhat.com \
    --cc=sid@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).