From 29f1a5934a1b4b3b22aaeee2c4c471fbd95f0ba2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 12 Apr 2015 05:13:23 -0400 Subject: sim: ft32: delete sim_read/sim_write funcs The common sim-hrw.o provides both of these, so simply use them. --- sim/ft32/ChangeLog | 4 ++++ sim/ft32/interp.c | 22 ---------------------- 2 files changed, 4 insertions(+), 22 deletions(-) (limited to 'sim') 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 + + * interp.c (sim_read, sim_write): Delete. + 2015-04-06 Mike Frysinger * 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) { -- cgit v1.1