From e34e8ebb165d302d15571bfe528227982fee00c6 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 18 Sep 2011 19:14:13 -0300 Subject: [PATCH] m1/perf/sched.c: fixed compilation with DEBUG enabled --- m1/perf/sched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,