25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: generate_tail.c,v 1.6 2005/10/22 17:24:21 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++; |
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 |
|
|
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" |