diff options
author | Ben Elliston <bje@au.ibm.com> | 2000-10-08 22:37:14 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2000-10-08 22:37:14 +0000 |
commit | a8d894af636985bcc6a8d8bcae75355db0e87345 (patch) | |
tree | b5ee9961c51c5229655d7f0c01505c3672e5b2db /sim/common/cgen-utils.c | |
parent | 454313e5edbca1fc9ba966a28ba18e4034ed773d (diff) | |
download | gdb-a8d894af636985bcc6a8d8bcae75355db0e87345.zip gdb-a8d894af636985bcc6a8d8bcae75355db0e87345.tar.gz gdb-a8d894af636985bcc6a8d8bcae75355db0e87345.tar.bz2 |
* usability improvements
2000-10-08 Ben Elliston <bje@redhat.com>
* cgen-utils.c (cgen_rtx_error): New function.
2000-10-07 Ben Elliston <bje@redhat.com>
* cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
conditions for sim_core_read_buffer().
Diffstat (limited to 'sim/common/cgen-utils.c')
-rw-r--r-- | sim/common/cgen-utils.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sim/common/cgen-utils.c b/sim/common/cgen-utils.c index a45804e..8383196 100644 --- a/sim/common/cgen-utils.c +++ b/sim/common/cgen-utils.c @@ -423,3 +423,16 @@ ROLSI (val, shift) return val; } + +/* Emit an error message from CGEN RTL. */ + +void +cgen_rtx_error (SIM_CPU *cpu, const char * msg) +{ + SIM_DESC sd = CPU_STATE (cpu); + + sim_io_printf (sd, msg); + sim_io_printf (sd, "\n"); + + sim_engine_halt (sd, cpu, NULL, CIA_GET (cpu), sim_stopped, SIM_SIGTRAP); +} |