+1998-12-05 Frank Ch. Eigler <fche@elastic.org>
+
+ * gx-translate.c (m32r_emit_short_insn): Correct ABI result
+ handling for TRAP insn.
+
1998-12-01 Frank Ch. Eigler <fche@elastic.org>
* Makefile.in (SIM_OBJS): Don't build sim-core.o.
sim_gx_compiled_block* block = optimized ? gx->optimized_block : gx->learning_block;
FILE* f = block->source_file;
- ASSERT(block->source_file != NULL);
+ ASSERT(f != NULL);
+
+ /* fprintf(f, " printf(\"0x%06x\\n\");\n", pc); */
if(op1 == 0x8 && op2 == 0x4 && r1 == 0)
{
ASSERT(f != NULL);
+ /* fprintf(f, " printf(\"0x%06x\\n\");\n", pc); */
+
if(0)
; /* place holder */
else if(op1 == 0x0 && op2 == 0x0)
fprintf(f, " tgx_syscall_data d = { 0x%08x, gr0, gr1, gr2, gr3 };\n", (unsigned) pc);
fprintf(f, " (*(callbacks->syscall))(info, &d);\n");
fprintf(f, " gr2 = d.errcode;\n");
- fprintf(f, " gr1 = d.result;\n");
- fprintf(f, " gr0 = d.result2;\n");
+ fprintf(f, " gr0 = d.result;\n");
+ fprintf(f, " gr1 = d.result2;\n");
fprintf(f, " }\n");
}
else if (r2 == 1) /* gdb breakpoint */