fprintf(dmp->f, "chain distribution:\n");
/* add all missing entries to chain distribution table */
- for (i = 0; i < entry->n_regs; i++) {
+ for (i = 1; i <= entry->n_regs; i++) {
snprintf(buf, sizeof(buf), "length %d", i);
fprintf(dmp->f, "%12s", buf);
stat_insert_int_distrib_tbl(sum_chains, i);
fprintf(dmp->f, "cycle distribution:\n");
/* add all missing entries to cycle distribution table */
- for (i = 0; i < entry->n_regs; i++) {
+ for (i = 1; i <= entry->n_regs; i++) {
snprintf(buf, sizeof(buf), "length %d", i);
fprintf(dmp->f, "%12s", buf);
stat_insert_int_distrib_tbl(sum_cycles, i);