diff --git a/m1/perf/sched.c b/m1/perf/sched.c index d00aa3f..9b6e223 100644 --- a/m1/perf/sched.c +++ b/m1/perf/sched.c @@ -271,7 +271,7 @@ static void put_reg(int vm_reg) if (--sc->regs[vm_idx].refs) return; - Dprintf(" free reg %d\n", regs[vm_idx].pfpu_reg); + Dprintf(" free reg %d\n", sc->regs[vm_idx].pfpu_reg); #ifdef REG_STATS assert(sc->curr_regs); @@ -448,7 +448,7 @@ static void issue(struct insn *insn, int cycle, unsigned *code) ref->insn->earliest = end+1; assert(ref->insn->unresolved); if (!--ref->insn->unresolved) { - Dprintf(" unlocked %lu -> %u\n", ref->insn-insns, + Dprintf(" unlocked %lu -> %u\n", ref->insn-sc->insns, ref->insn->earliest); list_del(&ref->insn->more); list_add_tail(sc->ready+ref->insn->earliest,