summaryrefslogtreecommitdiff
path: root/sim/common/sim-core.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-12-26 20:20:23 -0500
committerMike Frysinger <vapier@gentoo.org>2015-12-26 20:38:31 -0500
commit1b393626cef48974502e7077b191555b56680ee6 (patch)
tree90319a4085b670ee672d0bf335352b45789a07e9 /sim/common/sim-core.h
parent466b619e95908dc073b78413f0d0d0b1cb97e4b5 (diff)
downloadbinutils-gdb-1b393626cef48974502e7077b191555b56680ee6.tar.gz
sim: punt WITH_DEVICES & tconfig.h support
No arch is using this anymore, and we want all new ports using the hardware framework instead. Punt WITH_DEVICES and the two callbacks device_io_{read,write}_buffer. We can also punt the tconfig.h file as no port is using it anymore. This fixes in-tree builds that get confused by picking up the wrong one (common/ vs <port>/) caused by commit ae7d0cac8ce971f7108d270c. Any port that needs to set up a global define can use their own sim-main.h file that they must provide regardless.
Diffstat (limited to 'sim/common/sim-core.h')
-rw-r--r--sim/common/sim-core.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/sim/common/sim-core.h b/sim/common/sim-core.h
index bf982325bc1..6fdf1203b89 100644
--- a/sim/common/sim-core.h
+++ b/sim/common/sim-core.h
@@ -57,11 +57,7 @@ struct _sim_core_mapping {
void *free_buffer;
void *buffer;
/* callback map */
-#if (WITH_HW)
struct hw *device;
-#else
- device *device;
-#endif
/* tracing */
int trace;
/* growth */
@@ -144,11 +140,7 @@ extern void sim_core_attach
address_word addr,
address_word nr_bytes,
unsigned modulo,
-#if (WITH_HW)
struct hw *client,
-#else
- device *client,
-#endif
void *optional_buffer);
@@ -347,13 +339,4 @@ DECLARE_SIM_CORE_READ_N(misaligned,7,8)
#undef DECLARE_SIM_CORE_READ_N
-
-#if (WITH_DEVICES)
-/* TODO: create sim/common/device.h */
-/* These are defined with each particular cpu. */
-int device_io_read_buffer(device *me, void *dest, int space, address_word addr, unsigned nr_bytes, SIM_DESC sd, sim_cpu *processor, sim_cia cia);
-int device_io_write_buffer(device *me, const void *source, int space, address_word addr, unsigned nr_bytes, SIM_DESC sd, sim_cpu *processor, sim_cia cia);
-#endif
-
-
#endif