25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: generate_head.c,v 1.5 2005/09/18 19:54:14 debug Exp $ |
* $Id: generate_head.c,v 1.7 2005/10/27 14:01:13 debug Exp $ |
29 |
*/ |
*/ |
30 |
|
|
31 |
#include <stdio.h> |
#include <stdio.h> |
103 |
"extern int old_show_trace_tree;\n" |
"extern int old_show_trace_tree;\n" |
104 |
"extern int old_instruction_trace;\n" |
"extern int old_instruction_trace;\n" |
105 |
"extern int old_quiet_mode;\n" |
"extern int old_quiet_mode;\n" |
106 |
|
"extern int show_opcode_statistics;\n" |
107 |
"extern int quiet_mode;\n"); |
"extern int quiet_mode;\n"); |
108 |
|
|
109 |
printf("\n/* instr uses the same names as in " |
printf("\n/* instr uses the same names as in " |
113 |
"#define instr32(n) %s32_instr_ ## n\n\n", a); |
"#define instr32(n) %s32_instr_ ## n\n\n", a); |
114 |
printf("#endif\n\n"); |
printf("#endif\n\n"); |
115 |
|
|
116 |
printf("/* This is for marking a physical page as containing " |
printf("/* This is for marking a physical page as containing" |
117 |
"translated or\n combined instructions, respectively: */\n"); |
"\n combined instructions: */\n"); |
|
printf("#define translated (cpu->cd.%s.cur_physpage->flags " |
|
|
"|= TRANSLATIONS)\n", a); |
|
118 |
printf("#define combined (cpu->cd.%s.cur_physpage->flags " |
printf("#define combined (cpu->cd.%s.cur_physpage->flags " |
119 |
"|= COMBINATIONS)\n", a); |
"|= COMBINATIONS)\n", a); |
120 |
|
|