So for now we just unconditionally set the option - Linux wouldn't
work without a TLB anyway.
Setting MIPS_CPU_4KTLB was missing for Alchemy and Sandcraft, add that
back.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
static inline void cpu_probe_mips(struct cpuinfo_mips *c)
{
decode_configs(c);
static inline void cpu_probe_mips(struct cpuinfo_mips *c)
{
decode_configs(c);
- if (cpu_has_tlb)
- c->options |= MIPS_CPU_4KTLB;
+ c->options |= MIPS_CPU_4KTLB;
switch (c->processor_id & 0xff00) {
case PRID_IMP_4KC:
c->cputype = CPU_4KC;
switch (c->processor_id & 0xff00) {
case PRID_IMP_4KC:
c->cputype = CPU_4KC;
static inline void cpu_probe_alchemy(struct cpuinfo_mips *c)
{
decode_configs(c);
static inline void cpu_probe_alchemy(struct cpuinfo_mips *c)
{
decode_configs(c);
+ c->options |= MIPS_CPU_4KTLB;
switch (c->processor_id & 0xff00) {
case PRID_IMP_AU1_REV1:
case PRID_IMP_AU1_REV2:
switch (c->processor_id & 0xff00) {
case PRID_IMP_AU1_REV1:
case PRID_IMP_AU1_REV2:
static inline void cpu_probe_sibyte(struct cpuinfo_mips *c)
{
decode_configs(c);
static inline void cpu_probe_sibyte(struct cpuinfo_mips *c)
{
decode_configs(c);
+ c->options |= MIPS_CPU_4KTLB;
switch (c->processor_id & 0xff00) {
case PRID_IMP_SB1:
c->cputype = CPU_SB1;
switch (c->processor_id & 0xff00) {
case PRID_IMP_SB1:
c->cputype = CPU_SB1;
static inline void cpu_probe_sandcraft(struct cpuinfo_mips *c)
{
decode_configs(c);
static inline void cpu_probe_sandcraft(struct cpuinfo_mips *c)
{
decode_configs(c);
- if (cpu_has_tlb)
- c->options |= MIPS_CPU_4KTLB;
+ c->options |= MIPS_CPU_4KTLB;
switch (c->processor_id & 0xff00) {
case PRID_IMP_SR71000:
c->cputype = CPU_SR71000;
switch (c->processor_id & 0xff00) {
case PRID_IMP_SR71000:
c->cputype = CPU_SR71000;