This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] sim: ft32: delete sim_read/sim_write funcs


The common sim-hrw.o provides both of these, so simply use them.

Committed.
---
 sim/ft32/ChangeLog |  4 ++++
 sim/ft32/interp.c  | 22 ----------------------
 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)
 {
-- 
2.3.5


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]