From 42a3af5688cd41550e2b517f676f03f2842e615b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 25 Dec 2015 02:13:18 -0500 Subject: sim: device_error: punt Only four targets implement this function, and three of them do nothing. The 4th merely calls abort. Since calls to this function are followed by calls to sim_hw_abort or sim_io_error, this is largely useless. In the two places where we don't, replace the call with sim_engine_abort. We want to kill off the WITH_DEVICES logic in favor of WITH_HW, so this is a good first step. --- sim/bfin/ChangeLog | 4 ++++ sim/bfin/devices.c | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'sim/bfin') diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog index 1deb4ea..427cdd8 100644 --- a/sim/bfin/ChangeLog +++ b/sim/bfin/ChangeLog @@ -1,3 +1,7 @@ +2015-12-25 Mike Frysinger + + * devices.c (device_error): Delete. + 2015-12-24 Mike Frysinger * tconfig.h (SIM_HANDLES_LMA): Delete. diff --git a/sim/bfin/devices.c b/sim/bfin/devices.c index e25bd21..7dab5f1 100644 --- a/sim/bfin/devices.c +++ b/sim/bfin/devices.c @@ -149,14 +149,6 @@ device_io_write_buffer (device *me, const void *source, int space, return 0; } -void device_error (device *me, const char *message, ...) -{ - /* Don't bother doing anything here -- any place in common code that - calls device_error() follows it with sim_hw_abort(). Since the - device isn't bound to the system yet, we can't call any common - hardware error funcs on it or we'll hit a NULL pointer. */ -} - unsigned int dv_get_bus_num (struct hw *me) { const hw_unit *unit = hw_unit_address (me); -- cgit v1.1