|
|
@@ -1879,6 +1879,13 @@ static inline void cpu_probe_ingenic(struct cpuinfo_mips *c, unsigned int cpu)
|
|
|
c->cputype = CPU_JZRISC;
|
|
|
c->writecombine = _CACHE_UNCACHED_ACCELERATED;
|
|
|
__cpu_name[cpu] = "Ingenic JZRISC";
|
|
|
+ /*
|
|
|
+ * The XBurst core by default attempts to avoid branch target
|
|
|
+ * buffer lookups by detecting & special casing loops. This
|
|
|
+ * feature will cause BogoMIPS and lpj calculate in error.
|
|
|
+ * Set cp0 config7 bit 4 to disable this feature.
|
|
|
+ */
|
|
|
+ set_c0_config7(MIPS_CONF7_BTB_LOOP_EN);
|
|
|
break;
|
|
|
default:
|
|
|
panic("Unknown Ingenic Processor ID!");
|