diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-02-20 03:20:49 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-02-20 03:20:49 +0000 |
commit | d147d3844f52851b43e93eadca8f8adb37e2372a (patch) | |
tree | 51d577e528f67aa5af6ee3ddfe1a45f3f9fd7651 /sim/common/sim-core.c | |
parent | e843e28b1a2c81f7397410e80159a9f8fd726d26 (diff) | |
download | binutils-gdb-d147d3844f52851b43e93eadca8f8adb37e2372a.tar.gz |
Backout of revision 1.35. Abort may be valid operation.
Diffstat (limited to 'sim/common/sim-core.c')
-rw-r--r-- | sim/common/sim-core.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/sim/common/sim-core.c b/sim/common/sim-core.c index 6ce693c7716..47f5d64e72a 100644 --- a/sim/common/sim-core.c +++ b/sim/common/sim-core.c @@ -33,6 +33,13 @@ static MODULE_INIT_FN sim_core_init; static MODULE_UNINSTALL_FN sim_core_uninstall; +#if (WITH_DEVICES) +/* TODO: create sim/common/device.h */ +void device_error (device *me, char* message, ...); +int device_io_read_buffer(device *me, void *dest, int space, address_word addr, unsigned nr_bytes, 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_cpu *processor, sim_cia cia); +#endif + EXTERN_SIM_CORE\ (SIM_RC) sim_core_install (SIM_DESC sd) @@ -103,7 +110,7 @@ sim_core_signal (SIM_DESC sd, switch (sig) { case sim_core_unmapped_signal: - sim_io_eprintf (sd, "core: %d byte %s to unmaped address 0x%lx at 0x%lx\n", + sim_io_eprintf (sd, "core: %d byte %s to unmapped address 0x%lx at 0x%lx\n", nr_bytes, copy, (unsigned long) addr, (unsigned long) ip); sim_engine_halt (sd, cpu, NULL, cia, sim_stopped, SIM_SIGSEGV); break; @@ -524,7 +531,9 @@ sim_core_read_buffer (SIM_DESC sd, (unsigned_1*)buffer + count, mapping->space, raddr, - nr_bytes) != nr_bytes) + nr_bytes, + cpu, + CIA_GET(cpu)) != nr_bytes) break; count += nr_bytes; } @@ -570,7 +579,9 @@ sim_core_write_buffer (SIM_DESC sd, (unsigned_1*)buffer + count, mapping->space, raddr, - nr_bytes) != nr_bytes) + nr_bytes, + cpu, + CIA_GET(cpu)) != nr_bytes) break; count += nr_bytes; } |