Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: inst.h: Fix some instruction descriptions

Fix the description of the microMIPS NOP16 encoding or MM_NOP16, which
is not equivalent to the MIPS16 NOP instruction. This is 0x0c00 and
represents the microMIPS `MOVE16 $0, $0' operation, whereas MIPS16 NOP
is encoded as 0x6500, representing `MOVE $0, $16'.

Also fix a typo in `mm_fp0_format' description.

Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12177/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Maciej W. Rozycki and committed by
Ralf Baechle
29e28003 6e1715f7

+2 -2
+2 -2
arch/mips/include/uapi/asm/inst.h
··· 529 529 }; 530 530 531 531 /* 532 - * (microMIPS & MIPS16e) NOP instruction. 532 + * (microMIPS) NOP instruction. 533 533 */ 534 534 #define MM_NOP16 0x0c00 535 535 ··· 679 679 ;)))))) 680 680 }; 681 681 682 - struct mm_fp0_format { /* FPU multipy and add format (microMIPS) */ 682 + struct mm_fp0_format { /* FPU multiply and add format (microMIPS) */ 683 683 __BITFIELD_FIELD(unsigned int opcode : 6, 684 684 __BITFIELD_FIELD(unsigned int ft : 5, 685 685 __BITFIELD_FIELD(unsigned int fs : 5,