aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/net/bpf_jit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/net/bpf_jit.c b/arch/mips/net/bpf_jit.c
index 9b55143d19db..9fd6834a2172 100644
--- a/arch/mips/net/bpf_jit.c
+++ b/arch/mips/net/bpf_jit.c
@@ -426,7 +426,7 @@ static inline void emit_mod(unsigned int dst, unsigned int src,
426 u32 *p = &ctx->target[ctx->idx]; 426 u32 *p = &ctx->target[ctx->idx];
427 uasm_i_divu(&p, dst, src); 427 uasm_i_divu(&p, dst, src);
428 p = &ctx->target[ctx->idx + 1]; 428 p = &ctx->target[ctx->idx + 1];
429 uasm_i_mflo(&p, dst); 429 uasm_i_mfhi(&p, dst);
430 } 430 }
431 ctx->idx += 2; /* 2 insts */ 431 ctx->idx += 2; /* 2 insts */
432} 432}
@@ -971,7 +971,7 @@ load_ind:
971 break; 971 break;
972 case BPF_ALU | BPF_MOD | BPF_K: 972 case BPF_ALU | BPF_MOD | BPF_K:
973 /* A %= k */ 973 /* A %= k */
974 if (k == 1 || optimize_div(&k)) { 974 if (k == 1) {
975 ctx->flags |= SEEN_A; 975 ctx->flags |= SEEN_A;
976 emit_jit_reg_move(r_A, r_zero, ctx); 976 emit_jit_reg_move(r_A, r_zero, ctx);
977 } else { 977 } else {