[PATCH] [MIPS] Add fix for loongson3 llsc errata
Mon Jan 22 08:52:00 GMT 2018
Jiaxun Yang <firstname.lastname@example.org> writes:
> +/* ...likewise -mfix-loongson3-llsc. */
> + static bfd_boolean mips_fix_loongson3_llsc = TRUE;
Just a brief comment... you are asking here for all code generation
for all cores to pay the penalty of the loongson errata by enabling
this by default.
You will probably need to enable it (if not explicitly disabled)
for just the loongson cores when targeted with -march. If you are
aiming for this to be enabled in a linux distro such as debian or
fedora so that all base packages are safe then you may need a
configure time option to enable this by default (if the distro
maintainer chooses to do so).
I have not looked at the implementation just noticed the default
effect being undesirable.
Hope that makes sense.
More information about the Binutils