25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: generate_tail.c,v 1.9 2006/02/21 18:10:42 debug Exp $ |
* $Id: generate_tail.c,v 1.11 2006/06/24 21:47:23 debug Exp $ |
29 |
*/ |
*/ |
30 |
|
|
31 |
#include <stdio.h> |
#include <stdio.h> |
75 |
printf("#include \"cpu_dyntrans.c\"\n"); |
printf("#include \"cpu_dyntrans.c\"\n"); |
76 |
printf("#undef DYNTRANS_FUNCTION_TRACE\n\n"); |
printf("#undef DYNTRANS_FUNCTION_TRACE\n\n"); |
77 |
|
|
78 |
printf("#ifndef MODE32\n"); |
printf("#define DYNTRANS_INIT_TABLES " |
79 |
printf("#define DYNTRANS_INIT_64BIT_DUMMY_TABLES " |
"%s_cpu_init_tables\n", a); |
|
"%s_init_64bit_dummy_tables\n", a); |
|
80 |
printf("#include \"cpu_dyntrans.c\"\n"); |
printf("#include \"cpu_dyntrans.c\"\n"); |
81 |
printf("#undef DYNTRANS_INIT_64BIT_DUMMY_TABLES\n\n"); |
printf("#undef DYNTRANS_INIT_TABLES\n\n"); |
|
printf("#endif\n"); |
|
82 |
|
|
83 |
printf("#define DYNTRANS_TC_ALLOCATE_DEFAULT_PAGE " |
printf("#define DYNTRANS_TC_ALLOCATE_DEFAULT_PAGE " |
84 |
"%s_tc_allocate_default_page\n", a); |
"%s_tc_allocate_default_page\n", a); |
192 |
printf("#include \"cpu_dyntrans.c\"\n"); |
printf("#include \"cpu_dyntrans.c\"\n"); |
193 |
printf("#undef DYNTRANS_CPU_RUN_INSTR\n\n"); |
printf("#undef DYNTRANS_CPU_RUN_INSTR\n\n"); |
194 |
|
|
|
printf("#define CPU_RUN %s_cpu_run\n", a); |
|
|
printf("#define CPU_RINSTR %s_cpu_run_instr\n", a); |
|
|
printf("#define CPU_RUN_%s\n", uppercase(a)); |
|
|
printf("#include \"cpu_run.c\"\n"); |
|
|
printf("#undef CPU_RINSTR\n"); |
|
|
printf("#undef CPU_RUN_%s\n", uppercase(a)); |
|
|
printf("#undef CPU_RUN\n\n"); |
|
|
|
|
195 |
printf("CPU_FAMILY_INIT(%s,\"%s\")\n\n", a, b); |
printf("CPU_FAMILY_INIT(%s,\"%s\")\n\n", a, b); |
196 |
|
|
197 |
return 0; |
return 0; |