aboutsummaryrefslogtreecommitdiff
path: root/sim/v850/gencode.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-09-03 04:10:33 +0000
committerAndrew Cagney <cagney@redhat.com>1997-09-03 04:10:33 +0000
commit9cdd2c6d728fad88b49377ff2951ed436cbfb470 (patch)
tree12f35007d417e40add149e064c4d09e964cb6a2b /sim/v850/gencode.c
parent80c651f02dfef05adafe2cf9cc52014a0982d055 (diff)
downloadgdb-9cdd2c6d728fad88b49377ff2951ed436cbfb470.zip
gdb-9cdd2c6d728fad88b49377ff2951ed436cbfb470.tar.gz
gdb-9cdd2c6d728fad88b49377ff2951ed436cbfb470.tar.bz2
Add real SIM_DESC arg to v850 simulator.
Add --enable-sim-warnings, use/fix errors. Add --enable-sim-endian, don't use. Add common modules. Don't yet use most.
Diffstat (limited to 'sim/v850/gencode.c')
-rw-r--r--sim/v850/gencode.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sim/v850/gencode.c b/sim/v850/gencode.c
index 05fc4ec..05ce866 100644
--- a/sim/v850/gencode.c
+++ b/sim/v850/gencode.c
@@ -1,4 +1,8 @@
-#include "v850_sim.h"
+#include <stdio.h>
+#include <ctype.h>
+#include "ansidecl.h"
+#include "opcode/v850.h"
+#include <limits.h>
static void write_header PARAMS ((void));
static void write_opcodes PARAMS ((void));
@@ -42,12 +46,13 @@ write_template ()
struct v850_opcode *opcode;
int i,j;
+ printf ("#include \"sim-main.h\"\n");
printf ("#include \"v850_sim.h\"\n");
printf ("#include \"simops.h\"\n");
for (opcode = (struct v850_opcode *)v850_opcodes; opcode->name; opcode++)
{
- printf("/* %s */\nvoid\nOP_%X ()\n{\n", opcode->name, opcode->opcode);
+ printf("/* %s */\nvoid\nOP_%X (void)\n{\n", opcode->name, opcode->opcode);
/* count operands */
j = 0;
@@ -89,6 +94,7 @@ write_opcodes ()
int numops;
/* write out opcode table */
+ printf ("#include \"sim-main.h\"\n");
printf ("#include \"v850_sim.h\"\n");
printf ("#include \"simops.h\"\n\n");
printf ("struct simops Simops[] = {\n");