if (mt_opt_rpsctl >= 0) {
printk("34K return prediction stack override set to %d.\n",
mt_opt_rpsctl); if (mt_opt_rpsctl)
nconfig7 |= (1 << 2); else
nconfig7 &= ~(1 << 2);
} if (mt_opt_nblsu >= 0) {
printk("34K ALU/LSU sync override set to %d.\n", mt_opt_nblsu); if (mt_opt_nblsu)
nconfig7 |= (1 << 5); else
nconfig7 &= ~(1 << 5);
} if (mt_opt_forceconfig7) {
printk("CP0.Config7 forced to 0x%08x.\n", mt_opt_config7);
nconfig7 = mt_opt_config7;
} if (oconfig7 != nconfig7) {
__asm__ __volatile("sync");
write_c0_config7(nconfig7);
ehb();
printk("Config7: 0x%08x\n", read_c0_config7());
}
if (itc_base != 0) { /* * Configure ITC mapping. This code is very * specific to the 34K core family, which uses * a special mode bit ("ITC") in the ErrCtl * register to enable access to ITC control * registers via cache "tag" operations.
*/ unsignedlong ectlval; unsignedlong itcblkgrn;
ectlval = read_c0_errctl();
write_c0_errctl(ectlval | (0x1 << 26));
ehb(); #define INDEX_0 (0x80000000) #define INDEX_8 (0x80000008) /* Read "cache tag" for Dcache pseudo-index 8 */
cache_op(Index_Load_Tag_D, INDEX_8);
ehb();
itcblkgrn = read_c0_dtaglo();
itcblkgrn &= 0xfffe0000; /* Set for 128 byte pitch of ITC cells */
itcblkgrn |= 0x00000c00; /* Stage in Tag register */
write_c0_dtaglo(itcblkgrn);
ehb(); /* Write out to ITU with CACHE op */
cache_op(Index_Store_Tag_D, INDEX_8); /* Now set base address, and turn ITC on with 0x1 bit */
write_c0_dtaglo((itc_base & 0xfffffc00) | 0x1 );
ehb(); /* Write out to ITU with CACHE op */
cache_op(Index_Store_Tag_D, INDEX_0);
write_c0_errctl(ectlval);
ehb();
printk("Mapped %ld ITC cells starting at 0x%08x\n",
((itcblkgrn & 0x7fe00000) >> 20), itc_base);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.