/[gxemul]/trunk/src/cpus/generate_tail.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/cpus/generate_tail.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 18 by dpavlin, Mon Oct 8 16:19:11 2007 UTC revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC
# Line 25  Line 25 
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>
# Line 35  Line 35 
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++;
# Line 123  int main(int argc, char *argv[]) Line 123  int main(int argc, char *argv[])
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    
# Line 169  int main(int argc, char *argv[]) Line 171  int main(int argc, char *argv[])
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"

Legend:
Removed from v.18  
changed lines
  Added in v.22

  ViewVC Help
Powered by ViewVC 1.1.26