diff options
author | Johan Almbladh <[email protected]> | 2021-10-05 18:54:03 +0200 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2021-10-06 12:28:09 -0700 |
commit | f7c036c15b5388749bc8de208fb7b19d69c4f6fa (patch) | |
tree | c055560c6ab84e6fa3dd3dd842c89d6887021987 /tools/perf/scripts/python/bin/export-to-sqlite-report | |
parent | e737547eab6af8b57d77f7ba323c8d2d6b1a0008 (diff) |
mips, uasm: Add workaround for Loongson-2F nop CPU errata
This patch implements a workaround for the Loongson-2F nop in generated,
code, if the existing option CONFIG_CPU_NOP_WORKAROUND is set. Before,
the binutils option -mfix-loongson2f-nop was enabled, but no workaround
was done when emitting MIPS code. Now, the nop pseudo instruction is
emitted as "or ax,ax,zero" instead of the default "sll zero,zero,0". This
is consistent with the workaround implemented by binutils.
Signed-off-by: Johan Almbladh <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Reviewed-by: Jiaxun Yang <[email protected]>
Link: https://sourceware.org/legacy-ml/binutils/2009-11/msg00387.html
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-sqlite-report')
0 files changed, 0 insertions, 0 deletions