aboutsummaryrefslogtreecommitdiff
path: root/sim/d10v/gencode.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-11-15 02:57:42 -0800
committerMike Frysinger <vapier@gentoo.org>2015-11-15 20:47:03 -0500
commit679546067e1f3e1617bff22d03e483fb2beeed24 (patch)
tree1cf4ce63f612fb30be3ab13bdd657b44f2b46bed /sim/d10v/gencode.c
parenta572cc6fd43e90e28e828c6bdaa344c1ef6a75ab (diff)
downloadgdb-679546067e1f3e1617bff22d03e483fb2beeed24.zip
gdb-679546067e1f3e1617bff22d03e483fb2beeed24.tar.gz
gdb-679546067e1f3e1617bff22d03e483fb2beeed24.tar.bz2
sim: d10v: push down sd/cpu vars
By itself, this commit doesn't really change anything. It lays the groundwork for using the cpu state in follow up commits, both for engine state and for cpu state. Splitting things up this way so it is easier to see how things have changed.
Diffstat (limited to 'sim/d10v/gencode.c')
-rw-r--r--sim/d10v/gencode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/d10v/gencode.c b/sim/d10v/gencode.c
index 1728d8c..9f8a41c 100644
--- a/sim/d10v/gencode.c
+++ b/sim/d10v/gencode.c
@@ -30,7 +30,7 @@ write_header (void)
for (opcode = (struct d10v_opcode *)d10v_opcodes; opcode->name; opcode++)
if (opcode->format != OPCODE_FAKE)
- printf("void OP_%lX (void);\t\t/* %s */\n", opcode->opcode, opcode->name);
+ printf ("void OP_%lX (SIM_DESC, SIM_CPU *);\t\t/* %s */\n", opcode->opcode, opcode->name);
}
@@ -43,7 +43,7 @@ write_template (void)
struct d10v_opcode *opcode;
int i,j;
- printf ("#include \"d10v_sim.h\"\n");
+ printf ("#include \"sim-main.h\"\n");
printf ("#include \"simops.h\"\n");
for (opcode = (struct d10v_opcode *)d10v_opcodes; opcode->name; opcode++)
@@ -103,7 +103,7 @@ write_opcodes (void)
int i, j;
/* write out opcode table */
- printf ("#include \"d10v_sim.h\"\n");
+ printf ("#include \"sim-main.h\"\n");
printf ("#include \"simops.h\"\n\n");
printf ("struct simops Simops[] = {\n");
@@ -150,5 +150,5 @@ write_opcodes (void)
printf ("},\n");
}
}
- printf ("{ 0,0,0,0,0,0,0,(void (*)(void))0,0,{0,0,0}},\n};\n");
+ printf ("{ 0,0,0,0,0,0,0,(void (*)())0,0,{0,0,0}},\n};\n");
}