diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-11-22 12:52:44 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-11-22 12:52:44 +0000 |
commit | aaa11abe428e6433b3e41fb88431886f4445a462 (patch) | |
tree | c179020dfe5d8670cfd51dc4669f643bd7474e42 /sim/tic80/insns | |
parent | 38639b1294135f3fcc4339d0081777d755c065d9 (diff) | |
download | fsf-binutils-gdb-aaa11abe428e6433b3e41fb88431886f4445a462.zip fsf-binutils-gdb-aaa11abe428e6433b3e41fb88431886f4445a462.tar.gz fsf-binutils-gdb-aaa11abe428e6433b3e41fb88431886f4445a462.tar.bz2 |
Clarify meaning of sim_signalled's SIGRC argument. Document that this
isn't possible in sim-reason.c and just return the target SIGRC
instead.
For simulators that rely on sim-reason.c, replace SIG* with SIM_SIG*.
Hack nrun.c so that when it is executed (ARGV[0]) as `step' instead
of `run' it single steps the simulator. Allows testing of single step
without full GDB.
Diffstat (limited to 'sim/tic80/insns')
-rw-r--r-- | sim/tic80/insns | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/tic80/insns b/sim/tic80/insns index 894902a..dfe9c87 100644 --- a/sim/tic80/insns +++ b/sim/tic80/insns @@ -22,12 +22,12 @@ // The following is called when ever an illegal instruction is encountered. :internal::::illegal: sim_io_eprintf (SD, "0x%lx: illegal instruction\n", (unsigned long) cia.ip); - sim_engine_halt (SD, CPU, NULL, cia, sim_signalled, SIGILL); + sim_engine_halt (SD, CPU, NULL, cia, sim_signalled, SIM_SIGILL); // The following is called when ever an FP op is attempted with FPU disabled. :internal::::fp_unavailable: sim_io_eprintf (SD, "0x%lx: floating-point unavailable\n", (unsigned long) cia.ip); - sim_engine_halt (SD, CPU, NULL, cia, sim_signalled, SIGFPE); + sim_engine_halt (SD, CPU, NULL, cia, sim_signalled, SIM_SIGFPE); // Handle a branch instruction :function:::instruction_address:do_branch:int annul, address_word target, int rLink_p, unsigned32 *rLink @@ -1229,7 +1229,7 @@ void::function::do_trap:unsigned32 trap_number } break; case 73: - sim_engine_halt (SD, CPU, NULL, cia, sim_stopped, SIGTRAP); + sim_engine_halt (SD, CPU, NULL, cia, sim_stopped, SIM_SIGTRAP); /* Add a few traps for now to print the register state */ case 74: |