mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 09:31:50 +00:00
619b6e18fc
This complements the generic R4000/R4400 errata workaround code and adds bits for the daddiu problem. In most places it just modifies handwritten assembly code so that the assembler is allowed to use a temporary register as daddiu may now be treated as a macro that expands to a sequence of li and daddu. It is the AT register or, where AT is unavailable or used explicitly for another purpose, an explicitly-named register is selected, using the .set at=<reg> feature added recently to gas. This feature is only used if CONFIG_CPU_DADDI_WORKAROUNDS has been set, so if the workaround remains disabled, the required version of binutils stays unchanged. Similarly, daddiu instructions put in branch delay slots in noreorder fragments are now taken out of them and the assembler is allowed to reorder them itself as possible (which it does making the whole idea of scheduling them into delay slots manually questionable). Also in the very few places where such a simple conversion was not possible, a handcoded longer sequence is implemented. Other than that there are changes to code responsible for building the TLB fault and page clear/copy handlers to avoid daddiu as appropriate. These are only effective if the erratum is verified to be present at the run time. Finally there is a trivial update to __delay(), because it uses daddiu in a branch delay slot. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Signed-off-by: Ralf Baechle <ralf@linux-mips.org> |
||
---|---|---|
.. | ||
au1000 | ||
basler/excite | ||
bcm47xx | ||
boot | ||
cobalt | ||
configs | ||
dec | ||
emma2rh | ||
fw | ||
gt64120/wrppmc | ||
jazz | ||
jmr3927 | ||
kernel | ||
lasat | ||
lemote/lm2e | ||
lib | ||
math-emu | ||
mips-boards | ||
mipssim | ||
mm | ||
oprofile | ||
pci | ||
philips/pnx8550 | ||
pmc-sierra | ||
qemu | ||
sgi-ip22 | ||
sgi-ip27 | ||
sgi-ip32 | ||
sibyte | ||
sni | ||
tx4927 | ||
tx4938 | ||
vr41xx | ||
defconfig | ||
Kconfig | ||
Kconfig.debug | ||
Makefile |