diff options
author | Chen Jie <chenj@lemote.com> | 2014-08-15 04:56:58 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-09-22 07:35:46 -0400 |
commit | 3c09bae43ba92a07a6a7b7d42360deb32d289cc0 (patch) | |
tree | 7648425d5b309e76a60612ca46ba4b88bfdf729b /arch/mips/net/bpf_jit.c | |
parent | 0f33be009b89d2268e94194dc4fd01a7851b6d51 (diff) |
MIPS: Use WSBH/DSBH/DSHD on Loongson 3A
Signed-off-by: chenj <chenj@lemote.com>
Cc: linux-mips@linux-mips.org
Cc: chenhc@lemote.com
Patchwork: https://patchwork.linux-mips.org/patch/7542/
Patchwork: https://patchwork.linux-mips.org/patch/7550/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/net/bpf_jit.c')
-rw-r--r-- | arch/mips/net/bpf_jit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/net/bpf_jit.c b/arch/mips/net/bpf_jit.c index 9f7ecbda250c..ae8cc8477389 100644 --- a/arch/mips/net/bpf_jit.c +++ b/arch/mips/net/bpf_jit.c | |||
@@ -1263,7 +1263,7 @@ jmp_cmp: | |||
1263 | emit_half_load(r_A, r_skb, off, ctx); | 1263 | emit_half_load(r_A, r_skb, off, ctx); |
1264 | #ifdef CONFIG_CPU_LITTLE_ENDIAN | 1264 | #ifdef CONFIG_CPU_LITTLE_ENDIAN |
1265 | /* This needs little endian fixup */ | 1265 | /* This needs little endian fixup */ |
1266 | if (cpu_has_mips_r2) { | 1266 | if (cpu_has_wsbh) { |
1267 | /* R2 and later have the wsbh instruction */ | 1267 | /* R2 and later have the wsbh instruction */ |
1268 | emit_wsbh(r_A, r_A, ctx); | 1268 | emit_wsbh(r_A, r_A, ctx); |
1269 | } else { | 1269 | } else { |