This is the mail archive of the cgen@sourceware.org mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch][rfc] Assembler Initialization: CGEN_ASM_INIT_HOOK


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
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.

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"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]