diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-03-29 17:20:37 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-03-29 17:25:53 -0400 |
commit | 97eca187b3b286c903d78070736bbe1d95721ec4 (patch) | |
tree | 168325db1aa737df0108e63c0366284039a30434 /sim/mcore | |
parent | 191ec03314b005b8189ecea7296f2f6cad534d09 (diff) | |
download | fsf-binutils-gdb-97eca187b3b286c903d78070736bbe1d95721ec4.zip fsf-binutils-gdb-97eca187b3b286c903d78070736bbe1d95721ec4.tar.gz fsf-binutils-gdb-97eca187b3b286c903d78070736bbe1d95721ec4.tar.bz2 |
sim: mcore/microblaze: delete dead code
The mcore port had a few structs/defines that were never used.
Similarly, the microblaze port, because it was copied from mcore, has
that same dead code, and more. The watchpoint logic was never actually
used. Punt it all.
Diffstat (limited to 'sim/mcore')
-rw-r--r-- | sim/mcore/ChangeLog | 4 | ||||
-rw-r--r-- | sim/mcore/interp.c | 16 |
2 files changed, 4 insertions, 16 deletions
diff --git a/sim/mcore/ChangeLog b/sim/mcore/ChangeLog index 132cda8..f24032e 100644 --- a/sim/mcore/ChangeLog +++ b/sim/mcore/ChangeLog @@ -1,5 +1,9 @@ 2015-03-29 Mike Frysinger <vapier@gentoo.org> + * interp.c (struct aout, LONG, SHORT): Delete. + +2015-03-29 Mike Frysinger <vapier@gentoo.org> + * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS, SIM_EXTRA_LIBS): Delete. (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS). * interp.c: Include sim-main.h, sim-base.h, and sim-options.h. diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c index 93856d4..b99988c 100644 --- a/sim/mcore/interp.c +++ b/sim/mcore/interp.c @@ -1779,22 +1779,6 @@ sim_info (SIM_DESC sd, int verbose) #endif } -struct aout -{ - unsigned char sa_machtype[2]; - unsigned char sa_magic[2]; - unsigned char sa_tsize[4]; - unsigned char sa_dsize[4]; - unsigned char sa_bsize[4]; - unsigned char sa_syms[4]; - unsigned char sa_entry[4]; - unsigned char sa_trelo[4]; - unsigned char sa_drelo[4]; -} aout; - -#define LONG(x) (((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3]) -#define SHORT(x) (((x)[0]<<8)|(x)[1]) - static void free_state (SIM_DESC sd) { |