1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-12-18 20:13:07 +02:00

m1/perf/sched.c: fixed compilation with DEBUG enabled

This commit is contained in:
Werner Almesberger 2011-09-18 19:14:13 -03:00
parent 60cf6f5e9a
commit e34e8ebb16

View File

@ -271,7 +271,7 @@ static void put_reg(int vm_reg)
if (--sc->regs[vm_idx].refs) if (--sc->regs[vm_idx].refs)
return; 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 #ifdef REG_STATS
assert(sc->curr_regs); assert(sc->curr_regs);
@ -448,7 +448,7 @@ static void issue(struct insn *insn, int cycle, unsigned *code)
ref->insn->earliest = end+1; ref->insn->earliest = end+1;
assert(ref->insn->unresolved); assert(ref->insn->unresolved);
if (!--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); ref->insn->earliest);
list_del(&ref->insn->more); list_del(&ref->insn->more);
list_add_tail(sc->ready+ref->insn->earliest, list_add_tail(sc->ready+ref->insn->earliest,