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 ae7d0cac8c.

Any port that needs to set up a global define can use their own
sim-main.h file that they must provide regardless.
This commit is contained in:
Mike Frysinger 2015-12-26 20:20:23 -05:00
parent 466b619e95
commit 1b393626ce
95 changed files with 197 additions and 290 deletions

View file

@ -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