/[gxemul]/trunk/src/cpus/generate_head.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_head.c

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

revision 24 by dpavlin, Mon Oct 8 16:19:56 2007 UTC revision 28 by dpavlin, Mon Oct 8 16:20:26 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: generate_head.c,v 1.15 2006/04/19 18:55:57 debug Exp $   *  $Id: generate_head.c,v 1.18 2006/07/20 21:53:00 debug Exp $
29   */   */
30    
31  #include <stdio.h>  #include <stdio.h>
# Line 71  int main(int argc, char *argv[]) Line 71  int main(int argc, char *argv[])
71    
72          printf("\n/*  AUTOMATICALLY GENERATED! Do not edit.  */\n\n");          printf("\n/*  AUTOMATICALLY GENERATED! Do not edit.  */\n\n");
73    
74            printf("#include <assert.h>\n");
75            printf("#include \"debugger.h\"\n");
76    
77          printf("#define DYNTRANS_MAX_VPH_TLB_ENTRIES "          printf("#define DYNTRANS_MAX_VPH_TLB_ENTRIES "
78              "%s_MAX_VPH_TLB_ENTRIES\n", uppercase(a));              "%s_MAX_VPH_TLB_ENTRIES\n", uppercase(a));
79          printf("#define DYNTRANS_ARCH %s\n", a);          printf("#define DYNTRANS_ARCH %s\n", a);
# Line 150  int main(int argc, char *argv[]) Line 153  int main(int argc, char *argv[])
153          printf("\tcpu->cd.%s.next_ic --;\n", a);          printf("\tcpu->cd.%s.next_ic --;\n", a);
154          printf("}\n\n");          printf("}\n\n");
155    
156          printf("#ifdef DYNTRANS_VARIABLE_INSTRUCTION_LENGTH\n");          /*  Ugly special hack for Transputer:  */
157          printf("static struct %s_instr_call nothing_call = { "          if (strcasecmp(argv[1], "transputer") == 0) {
158              "instr(nothing), {0,0,0} };\n", a);                  printf("static struct %s_instr_call nothing_call = { "
159          printf("#else\n");                      "instr(nothing), {0} };\n", a);
160          printf("static struct %s_instr_call nothing_call = { "          } else {
161              "instr(nothing), {0,0,0} };\n", a);                  printf("static struct %s_instr_call nothing_call = { "
162          printf("#endif\n");                      "instr(nothing), {0,0,0} };\n", a);
163            }
164    
165          printf("\n");          printf("\n");
166    

Legend:
Removed from v.24  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26