It's used in one place and can easily be replaced by using the sim state.
+2015-11-21 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (mn10300_callback): Delete.
+ (sim_open): Delete mn10300_callback assignment.
+ (program_interrupt): Call sim_io_printf.
+ * mn10300_sim.h (mn10300_callback): Delete.
+
2015-11-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (WITH_CORE): Delete.
#include "bfd.h"
-host_callback *mn10300_callback;
struct _state State;
{
int i;
SIM_DESC sd = sim_state_alloc (kind, cb);
- mn10300_callback = cb;
SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
/* avoid infinite recursion */
if (in_interrupt)
- {
- (*mn10300_callback->printf_filtered) (mn10300_callback,
- "ERROR: recursion in program_interrupt during software exception dispatch.");
- }
+ sim_io_printf (sd, "ERROR: recursion in program_interrupt during software exception dispatch.");
else
{
in_interrupt = 1;
#include "bfd.h"
#include "sim-fpu.h"
-extern host_callback *mn10300_callback;
extern SIM_DESC simulator;
typedef unsigned8 uint8;