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.
+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
#ifndef HW_DEVICE_H
#define HW_DEVICE_H
-/* declared in sim-basics.h, this object is used everywhere */
-/* typedef struct _device device; */
-
/* Introduction:
/* Global types that code manipulates */
-typedef struct _device device;
struct hw;
struct _sim_fpu;
+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.
/* Default memory size. */
#define CRIS_DEFAULT_MEM_SIZE 0x800000 /* 8M */
-extern device cris_devices;
-
#endif /* SIM_MAIN_H */
+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.
# 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 =
+++ /dev/null
-/* 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 */
#include "sim-base.h"
#include "cgen-sim.h"
-#include "iq2000-sim.h"
\f
/* The _sim_cpu struct. */
+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.
struct sim_state {
sim_cpu *cpu[MAX_NR_PROCESSORS];
- device *devices;
sim_state_base base;
};
+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.
#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;