]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: clean up some more device detritus
authorMike Frysinger <vapier@gentoo.org>
Sun, 3 Jan 2016 08:44:02 +0000 (03:44 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 3 Jan 2016 09:23:10 +0000 (04:23 -0500)
Clean up some more remains of WITH_DEVICES that escaped notice.

We also clean up GETTWI/SETTWI defines in a few ports where they
were copied & pasted and are unused as they happen to be near the
device code.

13 files changed:
sim/common/ChangeLog
sim/common/hw-device.h
sim/common/sim-basics.h
sim/cris/ChangeLog
sim/cris/sim-main.h
sim/iq2000/ChangeLog
sim/iq2000/Makefile.in
sim/iq2000/iq2000-sim.h [deleted file]
sim/iq2000/sim-main.h
sim/m68hc11/ChangeLog
sim/m68hc11/sim-main.h
sim/sh64/ChangeLog
sim/sh64/sh64-sim.h

index e66c289cac45f0a9e90c85b958b27527572e9822..d35849176178f7c55c1be8ef498fb44aec7517ec 100644 (file)
@@ -1,3 +1,8 @@
+2016-01-03  Mike Frysinger  <vapier@gentoo.org>
+
+       * hw-device.h (device): Delete commented typedef.
+       * sim-basics.h (device): Delete typedef.
+
 2016-01-03  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-options.c (sim_parse_args): Replace for loop with a call
index 49dcc334397597c77f631ab6e7181b120f946d2b..bf1e9e51e03bf4d482dc763918c7638f21b8337f 100644 (file)
@@ -23,9 +23,6 @@
 #ifndef HW_DEVICE_H
 #define HW_DEVICE_H
 
-/* declared in sim-basics.h, this object is used everywhere */
-/* typedef struct _device device; */
-
 
 /* Introduction:
 
index 81a6966890c86650e1c1a9907684b26c92f5d5a7..e0cb6d17c91dfafce19b173e8c1a23d7f6fa95ce 100644 (file)
@@ -60,7 +60,6 @@ extern int asprintf (char **result, const char *format, ...);
 
 /* Global types that code manipulates */
 
-typedef struct _device device;
 struct hw;
 struct _sim_fpu;
 
index 79431b0c42cddd6b22b2f192cf6243506c4e1162..6474681070ebabe07075b451c2f2a9a0d493e7f5 100644 (file)
@@ -1,3 +1,7 @@
+2016-01-03  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-main.h (cris_devices): Delete.
+
 2016-01-03  Mike Frysinger  <vapier@gentoo.org>
 
        * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
index fa294d34e924104753e1f34d682c71bd88559597..8aab97096fc13439e965a4f8c1e6f632fd184a84 100644 (file)
@@ -226,6 +226,4 @@ cris_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), \
 /* Default memory size.  */
 #define CRIS_DEFAULT_MEM_SIZE 0x800000 /* 8M */
 
-extern device cris_devices;
-
 #endif /* SIM_MAIN_H */
index 9959f37e273c5ef993659ed666b546a781e885d8..38d815a89e76527182ca613e55aed7c0c587011c 100644 (file)
@@ -1,3 +1,9 @@
+2016-01-03  Mike Frysinger  <vapier@gentoo.org>
+
+       * iq2000-sim.h: Delete file.
+       * Makefile.in (SIM_EXTRA_DEPS): Delete iq2000-sim.h.
+       * sim-main.h: Delete iq2000-sim.h include.
+
 2016-01-03  Mike Frysinger  <vapier@gentoo.org>
 
        * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
index 4892a8077c71d6ec5f46874dc2bf040b22d2db54..d674adfa5ec702c570f9683e3ab151f31f0cf23a 100644 (file)
@@ -29,7 +29,7 @@ SIM_OBJS = \
 # Extra headers included by sim-main.h.
 SIM_EXTRA_DEPS = \
        $(CGEN_INCLUDE_DEPS) \
-       arch.h cpuall.h iq2000-sim.h $(srcdir)/../../opcodes/iq2000-desc.h
+       arch.h cpuall.h $(srcdir)/../../opcodes/iq2000-desc.h
 
 SIM_EXTRA_CFLAGS =
 
diff --git a/sim/iq2000/iq2000-sim.h b/sim/iq2000/iq2000-sim.h
deleted file mode 100644 (file)
index 5ffffbd..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/* collection of junk waiting time to sort out
-   Copyright (C) 1998-2016 Free Software Foundation, Inc.
-   Contributed by Cygnus Solutions.
-
-This file is part of the GNU Simulators.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
-
-#ifndef IQ2000_SIM_H
-#define IQ2000_SIM_H
-
-#define GETTWI GETTSI
-#define SETTWI SETTSI
-\f
-
-/* Hardware/device support.
-/* sim_core_attach device argument.  */
-extern device iq2000_devices;
-
-/* FIXME: Temporary, until device support ready.  */
-struct _device { int foo; };
-
-#endif /* IQ2000_SIM_H */
index 810e4f4252da4b30bccc43b7c414e376fe6c8af5..829f9bb56ba101c377da46187e9d416cacdd3cb4 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "sim-base.h"
 #include "cgen-sim.h"
-#include "iq2000-sim.h"
 \f
 /* The _sim_cpu struct.  */
 
index 1c22b2ae3b5128e42986af00f835d8c4d7a8763a..0ee8235ef92db33f4d4a4a7d3ed7de4b7b5d5e80 100644 (file)
@@ -1,3 +1,7 @@
+2016-01-03  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-main.h (sim_state): Delete devices member.
+
 2016-01-03  Mike Frysinger  <vapier@gentoo.org>
 
        * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
index 5e493997360b61636eabad14810137b61b3c1bfc..b940df7cdf0bfabc6aa463615628459066334ed1 100644 (file)
@@ -567,7 +567,6 @@ extern void m68hc11cpu_set_port (struct hw *me, sim_cpu *cpu,
 
 struct sim_state {
   sim_cpu        *cpu[MAX_NR_PROCESSORS];
-  device         *devices;
   sim_state_base base;
 };
 
index 82a06b0b027ae7d50019dcf144ae1f7892bf0642..8ccee765fe1e72eb8dbfa4c532e4c66b225c4c6d 100644 (file)
@@ -1,3 +1,9 @@
+2016-01-03  Mike Frysinger  <vapier@gentoo.org>
+
+       * sh64-sim.h (GETTWI, SETTWI): Delete unused defines.
+       (sh5_devices): Delete.
+       (struct _device): Delete.
+
 2016-01-03  Mike Frysinger  <vapier@gentoo.org>
 
        * sh64.c (count_argc): Delete.
index aaddfedb10584c049dc19b08547bc47c0731e72f..c4d5b6f1fa2d88e00270693baf7dc5ef284fc6d2 100644 (file)
@@ -20,20 +20,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #ifndef SH64_SIM_H
 #define SH64_SIM_H
 
-#define GETTWI GETTSI
-#define SETTWI SETTSI
-\f
-
 enum {
   ISM_COMPACT, ISM_MEDIA
 };
 
-/* Hardware/device support.  */
-extern device sh5_devices;
-
-/* FIXME: Temporary, until device support ready.  */
-struct _device { int foo; };
-
 extern IDESC * sh64_idesc_media;
 extern IDESC * sh64_idesc_compact;