This isn't super complete, but it's useful enough as-is.
+2021-05-04 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_engine_run): Call TRACE_INSN.
+ (INSTRUCTION): Likewise.
+ * microblaze.isa (addi): Call TRACE_REGISTER.
+
2021-05-04 Mike Frysinger <vapier@gentoo.org>
* interp.c: Include sim-syscall.h.
{
insts += 1;
bonus_cycles++;
+ TRACE_INSN (cpu, "HALT (%i)", RETREG);
sim_engine_halt (sd, NULL, NULL, NULL_CIA, sim_exited, RETREG);
}
else
{
#define INSTRUCTION(NAME, OPCODE, TYPE, ACTION) \
case NAME: \
+ TRACE_INSN (cpu, #NAME); \
ACTION; \
break;
#include "microblaze.isa"
INST_TYPE_RD_RA_IMM,
CARRY = C_calc(RA, IMM, 0);
RD = RA + IMM;
+ TRACE_REGISTER (cpu, "r%i = r%i + %i", rd, ra, IMM);
C_wr(CARRY);
PC += INST_SIZE)