Skip to content

Commit 20b880a

Browse files
Jiong Wangpaulburton
authored andcommitted
mips: bpf: fix encoding bug for mm_srlv32_op
For micro-mips, srlv inside POOL32A encoding space should use 0x50 sub-opcode, NOT 0x90. Some early version ISA doc describes the encoding as 0x90 for both srlv and srav, this looks to me was a typo. I checked Binutils libopcode implementation which is using 0x50 for srlv and 0x90 for srav. v1->v2: - Keep mm_srlv32_op sorted by value. Signed-off-by: Jiong Wang <jiong.wang@netronome.com> Signed-off-by: Paul Burton <paul.burton@mips.com> Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com> Acked-by: Song Liu <songliubraving@fb.com> Fixes: f31318f ("MIPS: uasm: Add srlv uasm instruction") Cc: Markos Chandras <markos.chandras@imgtec.com> Cc: daniel@iogearbox.net Cc: ast@kernel.org Cc: netdev@vger.kernel.org Cc: oss-drivers@netronome.com Cc: linux-mips@vger.kernel.org
1 parent 2595646 commit 20b880a

File tree

1 file changed

+1
-1
lines changed
  • arch/mips/include/uapi/asm

1 file changed

+1
-1
lines changed

arch/mips/include/uapi/asm/inst.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ enum mm_32a_minor_op {
369369
mm_ext_op = 0x02c,
370370
mm_pool32axf_op = 0x03c,
371371
mm_srl32_op = 0x040,
372+
mm_srlv32_op = 0x050,
372373
mm_sra_op = 0x080,
373-
mm_srlv32_op = 0x090,
374374
mm_rotr_op = 0x0c0,
375375
mm_lwxs_op = 0x118,
376376
mm_addu32_op = 0x150,

0 commit comments

Comments
 (0)