25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: generate_tail.c,v 1.5 2005/09/18 19:54:14 debug Exp $ |
* $Id: generate_tail.c,v 1.8 2005/12/26 12:32:10 debug Exp $ |
29 |
*/ |
*/ |
30 |
|
|
31 |
#include <stdio.h> |
#include <stdio.h> |
35 |
char *uppercase(char *l) |
char *uppercase(char *l) |
36 |
{ |
{ |
37 |
static char staticbuf[1000]; |
static char staticbuf[1000]; |
38 |
int i = 0; |
size_t i = 0; |
39 |
|
|
40 |
while (*l && i < sizeof(staticbuf)) { |
while (*l && i < sizeof(staticbuf)) { |
41 |
char u = *l++; |
char u = *l++; |
84 |
printf("#include \"cpu_dyntrans.c\"\n"); |
printf("#include \"cpu_dyntrans.c\"\n"); |
85 |
printf("#undef DYNTRANS_INVAL_ENTRY\n\n"); |
printf("#undef DYNTRANS_INVAL_ENTRY\n\n"); |
86 |
|
|
87 |
printf("#define DYNTRANS_INVALIDATE_TC_PADDR " |
printf("#define DYNTRANS_INVALIDATE_TC " |
88 |
"%s_invalidate_translation_caches_paddr\n", a); |
"%s_invalidate_translation_caches\n", a); |
89 |
printf("#include \"cpu_dyntrans.c\"\n"); |
printf("#include \"cpu_dyntrans.c\"\n"); |
90 |
printf("#undef DYNTRANS_INVALIDATE_TC_PADDR\n\n"); |
printf("#undef DYNTRANS_INVALIDATE_TC\n\n"); |
91 |
|
|
92 |
printf("#define DYNTRANS_INVALIDATE_TC_CODE " |
printf("#define DYNTRANS_INVALIDATE_TC_CODE " |
93 |
"%s_invalidate_code_translation\n", a); |
"%s_invalidate_code_translation\n", a); |
123 |
printf("#define MODE_uint_t uint32_t\n"); |
printf("#define MODE_uint_t uint32_t\n"); |
124 |
printf("#define MODE_int_t int32_t\n"); |
printf("#define MODE_int_t int32_t\n"); |
125 |
printf("#endif\n"); |
printf("#endif\n"); |
126 |
|
printf("#define COMBINE(n) %s_combine_ ## n\n", a); |
127 |
|
printf("#include \"quick_pc_to_pointers.h\"\n"); |
128 |
printf("#include \"cpu_%s_instr.c\"\n\n", a); |
printf("#include \"cpu_%s_instr.c\"\n\n", a); |
129 |
|
|
130 |
|
|
151 |
"%s32_invalidate_tlb_entry\n", a); |
"%s32_invalidate_tlb_entry\n", a); |
152 |
printf("#include \"cpu_dyntrans.c\"\n"); |
printf("#include \"cpu_dyntrans.c\"\n"); |
153 |
printf("#undef DYNTRANS_INVAL_ENTRY\n\n"); |
printf("#undef DYNTRANS_INVAL_ENTRY\n\n"); |
154 |
printf("#define DYNTRANS_INVALIDATE_TC_PADDR " |
printf("#define DYNTRANS_INVALIDATE_TC " |
155 |
"%s32_invalidate_translation_caches_paddr\n", a); |
"%s32_invalidate_translation_caches\n", a); |
156 |
printf("#include \"cpu_dyntrans.c\"\n"); |
printf("#include \"cpu_dyntrans.c\"\n"); |
157 |
printf("#undef DYNTRANS_INVALIDATE_TC_PADDR\n\n"); |
printf("#undef DYNTRANS_INVALIDATE_TC\n\n"); |
158 |
printf("#define DYNTRANS_INVALIDATE_TC_CODE " |
printf("#define DYNTRANS_INVALIDATE_TC_CODE " |
159 |
"%s32_invalidate_code_translation\n", a); |
"%s32_invalidate_code_translation\n", a); |
160 |
printf("#include \"cpu_dyntrans.c\"\n"); |
printf("#include \"cpu_dyntrans.c\"\n"); |
171 |
printf("#include \"cpu_dyntrans.c\"\n"); |
printf("#include \"cpu_dyntrans.c\"\n"); |
172 |
printf("#undef DYNTRANS_PC_TO_POINTERS_FUNC\n\n"); |
printf("#undef DYNTRANS_PC_TO_POINTERS_FUNC\n\n"); |
173 |
printf("#undef DYNTRANS_PC_TO_POINTERS_GENERIC\n\n"); |
printf("#undef DYNTRANS_PC_TO_POINTERS_GENERIC\n\n"); |
174 |
|
printf("#undef COMBINE\n"); |
175 |
|
printf("#define COMBINE(n) %s32_combine_ ## n\n", a); |
176 |
|
printf("#include \"quick_pc_to_pointers.h\"\n"); |
177 |
printf("#include \"cpu_%s_instr.c\"\n", a); |
printf("#include \"cpu_%s_instr.c\"\n", a); |
178 |
|
|
179 |
printf("\n#undef DYNTRANS_PC_TO_POINTERS\n" |
printf("\n#undef DYNTRANS_PC_TO_POINTERS\n" |