Explorar o código

[MIPS] Fix pipeline hazard.

In the the sequence:
        ei
        ..
        mfc0    $x, $status

the mfc0 may not see the SR_IE bit set. This was a deliberate bug in the
kernel code because we knew this was a safe thing to do on all R2 silicon
so far but new silicon is changing this.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle %!s(int64=18) %!d(string=hai) anos
pai
achega
7605b39061
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      include/asm-mips/hazards.h

+ 1 - 0
include/asm-mips/hazards.h

@@ -52,6 +52,7 @@ ASMMACRO(tlb_probe_hazard,
 	 _ehb
 	 _ehb
 	)
 	)
 ASMMACRO(irq_enable_hazard,
 ASMMACRO(irq_enable_hazard,
+	 _ehb
 	)
 	)
 ASMMACRO(irq_disable_hazard,
 ASMMACRO(irq_disable_hazard,
 	_ehb
 	_ehb