1 |
/* |
/* |
2 |
* Copyright (C) 2005 Anders Gavare. All rights reserved. |
* Copyright (C) 2005-2007 Anders Gavare. All rights reserved. |
3 |
* |
* |
4 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
5 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: generate_tail.c,v 1.12 2006/07/16 13:32:26 debug Exp $ |
* $Id: generate_tail.c,v 1.16 2007/06/07 15:36:24 debug Exp $ |
29 |
*/ |
*/ |
30 |
|
|
31 |
#include <stdio.h> |
#include <stdio.h> |
66 |
|
|
67 |
printf("\n/*\n * AUTOMATICALLY GENERATED! Do not edit.\n */\n\n"); |
printf("\n/*\n * AUTOMATICALLY GENERATED! Do not edit.\n */\n\n"); |
68 |
|
|
69 |
|
printf("extern size_t dyntrans_cache_size;\n"); |
70 |
|
printf("extern int native_code_translation_enabled;\n"); |
71 |
|
printf("#include \"native.h\"\n"); |
72 |
|
|
73 |
printf("#ifdef DYNTRANS_32\n"); |
printf("#ifdef DYNTRANS_32\n"); |
74 |
printf("#define MODE32\n"); |
printf("#define MODE32\n"); |
75 |
printf("#endif\n"); |
printf("#endif\n"); |
84 |
printf("#include \"cpu_dyntrans.c\"\n"); |
printf("#include \"cpu_dyntrans.c\"\n"); |
85 |
printf("#undef DYNTRANS_INIT_TABLES\n\n"); |
printf("#undef DYNTRANS_INIT_TABLES\n\n"); |
86 |
|
|
87 |
|
printf("#define DYNTRANS_TIMER_SAMPLE_TICK " |
88 |
|
"%s_timer_sample_tick\n", a); |
89 |
|
printf("#include \"cpu_dyntrans.c\"\n"); |
90 |
|
printf("#undef DYNTRANS_TIMER_SAMPLE_TICK\n\n"); |
91 |
|
|
92 |
printf("#define DYNTRANS_TC_ALLOCATE_DEFAULT_PAGE " |
printf("#define DYNTRANS_TC_ALLOCATE_DEFAULT_PAGE " |
93 |
"%s_tc_allocate_default_page\n", a); |
"%s_tc_allocate_default_page\n", a); |
94 |
printf("#include \"cpu_dyntrans.c\"\n"); |
printf("#include \"cpu_dyntrans.c\"\n"); |