25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: generate_arm_dpi.c,v 1.1 2005/08/29 14:36:41 debug Exp $ |
* $Id: generate_arm_dpi.c,v 1.2 2005/10/22 12:22:13 debug Exp $ |
29 |
*/ |
*/ |
30 |
|
|
31 |
#include <stdio.h> |
#include <stdio.h> |
65 |
printf("#include <stdio.h>\n#include <stdlib.h>\n" |
printf("#include <stdio.h>\n#include <stdlib.h>\n" |
66 |
"#include \"cpu.h\"\n" |
"#include \"cpu.h\"\n" |
67 |
"#include \"misc.h\"\n" |
"#include \"misc.h\"\n" |
68 |
|
"#include \"arm_quick_pc_to_pointers.h\"\n" |
69 |
"#define reg(x) (*((uint32_t *)(x)))\n"); |
"#define reg(x) (*((uint32_t *)(x)))\n"); |
70 |
printf("extern void arm_instr_nop(struct cpu *, " |
printf("extern void arm_instr_nop(struct cpu *, " |
71 |
"struct arm_instr_call *);\n"); |
"struct arm_instr_call *);\n"); |
72 |
printf("extern void arm_instr_invalid(struct cpu *, " |
printf("extern void arm_instr_invalid(struct cpu *, " |
73 |
"struct arm_instr_call *);\n"); |
"struct arm_instr_call *);\n"); |
|
printf("extern uint32_t R(struct cpu *, struct arm_instr_call *, " |
|
|
"uint32_t, int);\n"); |
|
|
printf("extern void arm_pc_to_pointers(struct cpu *);\n"); |
|
74 |
|
|
75 |
for (reg=0; reg<=1; reg++) |
for (reg=0; reg<=1; reg++) |
76 |
for (pc=0; pc<=1; pc++) |
for (pc=0; pc<=1; pc++) |