Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a40a2b67 authored by Vladimir Murzin's avatar Vladimir Murzin Committed by Benjamin Herrenschmidt
Browse files

powerpc/bpf: Fix DIVWU instruction opcode



Currently DIVWU stands for *signed* divw opcode:

7d 2a 4b 96 	divwu   r9,r10,r9
7d 2a 4b d6 	divw    r9,r10,r9

Use the *unsigned* divw opcode for DIVWU.

Suggested-by: default avatarVassili Karpov <av1474@comtv.ru>
Reviewed-by: default avatarVassili Karpov <av1474@comtv.ru>
Signed-off-by: default avatarVladimir Murzin <murzin.v@gmail.com>
Acked-by: default avatarMatt Evans <matt@ozlabs.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent a3e31b45
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -222,7 +222,7 @@
#define PPC_INST_MULLW			0x7c0001d6
#define PPC_INST_MULHWU			0x7c000016
#define PPC_INST_MULLI			0x1c000000
#define PPC_INST_DIVWU			0x7c0003d6
#define PPC_INST_DIVWU			0x7c000396
#define PPC_INST_RLWINM			0x54000000
#define PPC_INST_RLDICR			0x78000004
#define PPC_INST_SLW			0x7c000030