* 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().
This commit is contained in:
Ben Elliston 2000-10-08 22:37:14 +00:00
parent 454313e5ed
commit a8d894af63
3 changed files with 27 additions and 0 deletions

View file

@ -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);
}