From: Dave Brolley <brolley@redhat.com>
To: cgen@sources.redhat.com
Subject: [patch][rfc] Assembler Initialization: CGEN_ASM_INIT_HOOK
Date: Fri, 12 Jan 2007 22:11:00 -0000 [thread overview]
Message-ID: <45A80792.3050300@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 385 bytes --]
Hi,
The attached patch includes the expansion of CGEN_ASM_INIT_HOOK into the
generated code for @arch@_cgen_init_asm if it is defined. The provides
an architecure specific hook for assembler initialization.
This will be used by the soon-to-be-contributed port for the Toshiba MeP
architecture, but is general enough to be considered on its own.
Seeking approval to commit.
Dave
[-- Attachment #2: cgen.asm-init-hook.ChangeLog --]
[-- Type: text/plain, Size: 180 bytes --]
2007-01-12 Dave Brolley <brolley@redhat.com>
* opc-asmdis.scm (-gen-init-asm-fn): Include CGEN_ASM_INIT_HOOK
in the generated code for @arch@_cgen_init_asm if it is defined.
[-- Attachment #3: cgen.asm-init-hook.patch.txt --]
[-- Type: text/plain, Size: 591 bytes --]
Index: cgen/opc-asmdis.scm
===================================================================
RCS file: /cvs/src/src/cgen/opc-asmdis.scm,v
retrieving revision 1.5
diff -c -p -r1.5 opc-asmdis.scm
*** cgen/opc-asmdis.scm 1 Jul 2005 11:16:30 -0000 1.5
--- cgen/opc-asmdis.scm 11 Jan 2007 19:09:39 -0000
*************** void
*** 70,75 ****
--- 70,78 ----
@arch@_cgen_init_ibld_table (cd);
cd->parse_handlers = & @arch@_cgen_parse_handlers[0];
cd->parse_operand = @arch@_cgen_parse_operand;
+ #ifdef CGEN_ASM_INIT_HOOK
+ CGEN_ASM_INIT_HOOK
+ #endif
"
-asm-init-code
"}\n\n"
next reply other threads:[~2007-01-12 22:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-12 22:11 Dave Brolley [this message]
2007-02-06 19:59 ` Dave Brolley
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=45A80792.3050300@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).