aboutsummaryrefslogtreecommitdiff
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-n-core.h
parentsim: bfin: push down mmr address/size checks (diff)
downloadbinutils-gdb-1b393626cef48974502e7077b191555b56680ee6.tar.gz
binutils-gdb-1b393626cef48974502e7077b191555b56680ee6.tar.bz2
binutils-gdb-1b393626cef48974502e7077b191555b56680ee6.zip
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-n-core.h')
-rw-r--r--sim/common/sim-n-core.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/sim/common/sim-n-core.h b/sim/common/sim-n-core.h
index 3393f19c252..0867cc2248f 100644
--- a/sim/common/sim-n-core.h
+++ b/sim/common/sim-n-core.h
@@ -164,18 +164,6 @@ sim_core_read_aligned_N(sim_cpu *cpu,
mapping = sim_core_find_mapping (core, map, addr, N, read_transfer, 1 /*abort*/, cpu, cia);
do
{
-#if (WITH_DEVICES)
- if (mapping->device != NULL)
- {
- unsigned_M data;
- if (device_io_read_buffer (mapping->device, &data, mapping->space, addr, N, CPU_STATE (cpu), cpu, cia) != N)
- sim_engine_abort (CPU_STATE (cpu), cpu, cia,
- "internal error - %s - io_read_buffer should not fail",
- XSTRING (sim_core_read_aligned_N));
- val = T2H_M (data);
- break;
- }
-#endif
#if (WITH_HW)
if (mapping->device != NULL)
{
@@ -296,17 +284,6 @@ sim_core_write_aligned_N(sim_cpu *cpu,
mapping = sim_core_find_mapping (core, map, addr, N, write_transfer, 1 /*abort*/, cpu, cia);
do
{
-#if (WITH_DEVICES)
- if (mapping->device != NULL)
- {
- unsigned_M data = H2T_M (val);
- if (device_io_write_buffer (mapping->device, &data, mapping->space, addr, N, CPU_STATE (cpu), cpu, cia) != N)
- sim_engine_abort (CPU_STATE (cpu), cpu, cia,
- "internal error - %s - io_write_buffer should not fail",
- XSTRING (sim_core_read_aligned_N));
- break;
- }
-#endif
#if (WITH_HW)
if (mapping->device != NULL)
{