OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 1058 to Rev 1059
    Reverse comparison

Rev 1058 → Rev 1059

/trunk/or1ksim/cuc/insn.c
651,6 → 651,7
f->INSN(ref2) = tmp;
if (cuc_debug >= 6) print_cuc_bb (f, "BBB");
cuc_check (f);
return 1;
}
}
}
757,16 → 758,21
&& !(ii->type & IT_MEMADD) && ii->op[2] == 0) {
int b1, i1, j1;
cucdebug (2, "%8x:link %8x: ", REF(b, i), ii->op[1]);
for (b1 = 0; b1 < f->num_bb; b1++) if (!(f->bb[b1].type & BB_DEAD))
for (i1 = 0; i1 < f->bb[b1].ninsn; i1++)
for (j1 = 0; j1 < MAX_OPERANDS; j1++)
if ((f->bb[b1].insn[i1].opt[j1] & OPT_REF)
&& f->bb[b1].insn[i1].op[j1] == REF(b, i)) {
cucdebug (2, "%x ", REF (b1, i1));
f->bb[b1].insn[i1].op[j1] = ii->op[1];
}
cucdebug (2, "\n");
change_insn_type (ii, II_NOP);
if (!(prev->type & (IT_OUTPUT | IT_VOLATILE))) {
assert (ii->opt[0] & OPT_DEST);
prev->op[0] = ii->op[0]; prev->opt[0] = ii->opt[0];
prev->type |= ii->type & IT_OUTPUT;
for (b1 = 0; b1 < f->num_bb; b1++) if (!(f->bb[b1].type & BB_DEAD))
for (i1 = 0; i1 < f->bb[b1].ninsn; i1++)
for (j1 = 0; j1 < MAX_OPERANDS; j1++)
if ((f->bb[b1].insn[i1].opt[j1] & OPT_REF)
&& f->bb[b1].insn[i1].op[j1] == REF(b, i)) {
cucdebug (2, "%x ", REF (b1, i1));
f->bb[b1].insn[i1].op[j1] = ii->op[1];
}
cucdebug (2, "\n");
change_insn_type (ii, II_NOP);
}
} else if (prev->opt[2] & OPT_CONST) {
/* Handle some common cases */
/* add - add joining */
/trunk/or1ksim/cuc/verilog.c
777,9 → 777,9
GEN (" cuc_adr_i[15:6] == %i%s\n", i, i < nrf - 1 ? "," : "};");
 
GEN ("assign i_first_reg = {\n");
for (i = 0; i < nrf; i++) {
for (i = 0; i < nfuncs; i++) if (f[i]) {
for (j = 0; j <= MAX_REGS; j++) if (f[i]->used_regs[j]) break;
GEN (" cuc_adr_i[5:0] == %i%s\n", j, i < nrf - 1 ? "," : "};");
GEN (" cuc_adr_i[5:0] == %i%s\n", j, f[i]->tmp < nrf - 1 ? "," : "};");
}
 
GEN ("assign i_we = {%i{cuc_stb_i && cuc_we_i}} & i_selected;\n", nrf);
/trunk/or1ksim/cuc/cuc.c
556,6 → 556,7
int i, j;
char tmp1[256];
char filename_cut[256];
#if 0 /* Select prefix, based on binary program name */
for (i = 0; i < sizeof (filename_cut); i++) {
if (isalpha(filename[i])) filename_cut[i] = filename[i];
else {
563,6 → 564,9
break;
}
}
#else
strcpy (filename_cut, "cu");
#endif
 
PRINTF ("Entering OpenRISC Custom Unit Compiler command prompt\n");
PRINTF ("Using profile file \"%s\" and memory profile file \"%s\".\n", config.sim.prof_fn, config.sim.mprof_fn);
582,7 → 586,7
 
prof_set (1, 0);
assert (prof_acquire (config.sim.prof_fn) == 0);
cuc_debug = 9;
cuc_debug = 0;
if (config.cuc.calling_convention)
PRINTF ("Assuming OpenRISC standard calling convention.\n");

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.