aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/traps.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/traps.c')
-rw-r--r--arch/mips/kernel/traps.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 519b8f18eedf..876aff71cd2e 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -1186,8 +1186,14 @@ void __init per_cpu_trap_init(void)
1186 /* Setting vector spacing enables EI/VI mode */ 1186 /* Setting vector spacing enables EI/VI mode */
1187 change_c0_intctl (0x3e0, VECTORSPACING); 1187 change_c0_intctl (0x3e0, VECTORSPACING);
1188 } 1188 }
1189 if (cpu_has_divec) 1189 if (cpu_has_divec) {
1190 set_c0_cause(CAUSEF_IV); 1190 if (cpu_has_mipsmt) {
1191 unsigned int vpflags = dvpe();
1192 set_c0_cause(CAUSEF_IV);
1193 evpe(vpflags);
1194 } else
1195 set_c0_cause(CAUSEF_IV);
1196 }
1191 1197
1192 cpu_data[cpu].asid_cache = ASID_FIRST_VERSION; 1198 cpu_data[cpu].asid_cache = ASID_FIRST_VERSION;
1193 TLBMISS_HANDLER_SETUP(); 1199 TLBMISS_HANDLER_SETUP();