aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-04-12 05:13:23 -0400
committerMike Frysinger <vapier@gentoo.org>2015-04-12 05:13:23 -0400
commit29f1a5934a1b4b3b22aaeee2c4c471fbd95f0ba2 (patch)
tree8d74481b7ba9345cfc93c2dab6cb4f0f66a734a6 /sim
parent48d96f80be260f0c8dbece14f886a0f1c1166d82 (diff)
downloadgdb-29f1a5934a1b4b3b22aaeee2c4c471fbd95f0ba2.zip
gdb-29f1a5934a1b4b3b22aaeee2c4c471fbd95f0ba2.tar.gz
gdb-29f1a5934a1b4b3b22aaeee2c4c471fbd95f0ba2.tar.bz2
sim: ft32: delete sim_read/sim_write funcs
The common sim-hrw.o provides both of these, so simply use them.
Diffstat (limited to 'sim')
-rw-r--r--sim/ft32/ChangeLog4
-rw-r--r--sim/ft32/interp.c22
2 files changed, 4 insertions, 22 deletions
diff --git a/sim/ft32/ChangeLog b/sim/ft32/ChangeLog
index ddf2bfa..5caf31a 100644
--- a/sim/ft32/ChangeLog
+++ b/sim/ft32/ChangeLog
@@ -1,3 +1,7 @@
+2015-04-12 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_read, sim_write): Delete.
+
2015-04-06 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_OBJS): Delete sim-engine.o.
diff --git a/sim/ft32/interp.c b/sim/ft32/interp.c
index 931ad2b..0666f6c 100644
--- a/sim/ft32/interp.c
+++ b/sim/ft32/interp.c
@@ -688,28 +688,6 @@ sim_engine_run (SIM_DESC sd,
}
}
-int
-sim_write (SIM_DESC sd,
- SIM_ADDR addr,
- const unsigned char *buffer,
- int size)
-{
- sim_cpu *cpu = STATE_CPU (sd, 0);
-
- return sim_core_write_buffer (sd, cpu, write_map, buffer, addr, size);
-}
-
-int
-sim_read (SIM_DESC sd,
- SIM_ADDR addr,
- unsigned char *buffer,
- int size)
-{
- sim_cpu *cpu = STATE_CPU (sd, 0);
-
- return sim_core_read_buffer (sd, cpu, read_map, buffer, addr, size);
-}
-
static uint32_t *
ft32_lookup_register (SIM_CPU *cpu, int nr)
{