+1998-12-30 Frank Ch. Eigler <fche@elastic.org>
+
+ * cpuall.h: Don't include sim-model.h.
+ * gx-translate.c (m32r_emit_short_insn): Emit a PC trace on stdout
+ if $GX_TRACE is set.
+ (m32r_emit_long_insn): Ditto.
+ * sim-main.h: #undef some newly imported macros from cgen headers.
+
1998-12-05 Frank Ch. Eigler <fche@elastic.org>
* gx-translate.c (m32r_emit_short_insn): Correct ABI result
ASSERT(f != NULL);
- /* fprintf(f, " printf(\"0x%06x\\n\");\n", pc); */
+ /* force PC trace by environment variable */
+#ifdef HAVE_GETENV
+ if(getenv("GX_TRACE"))
+ fprintf(f, " printf(\"0x%06x\\n\");\n", pc);
+#endif
if(op1 == 0x8 && op2 == 0x4 && r1 == 0)
{
ASSERT(f != NULL);
- /* fprintf(f, " printf(\"0x%06x\\n\");\n", pc); */
+ /* force PC trace by environment variable */
+#ifdef HAVE_GETENV
+ if(getenv("GX_TRACE"))
+ fprintf(f, " printf(\"0x%06x\\n\");\n", pc);
+#endif
if(0)
; /* place holder */