diff options
-rw-r--r-- | arch/mips/include/uapi/asm/inst.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/mips/include/uapi/asm/inst.h b/arch/mips/include/uapi/asm/inst.h index 9ce652ed5f89..1a44c5ac6f4f 100644 --- a/arch/mips/include/uapi/asm/inst.h +++ b/arch/mips/include/uapi/asm/inst.h | |||
@@ -8,6 +8,7 @@ | |||
8 | * Copyright (C) 1996, 2000 by Ralf Baechle | 8 | * Copyright (C) 1996, 2000 by Ralf Baechle |
9 | * Copyright (C) 2006 by Thiemo Seufer | 9 | * Copyright (C) 2006 by Thiemo Seufer |
10 | * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. | 10 | * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. |
11 | * Copyright (C) 2014 Imagination Technologies Ltd. | ||
11 | */ | 12 | */ |
12 | #ifndef _UAPI_ASM_INST_H | 13 | #ifndef _UAPI_ASM_INST_H |
13 | #define _UAPI_ASM_INST_H | 14 | #define _UAPI_ASM_INST_H |
@@ -598,6 +599,15 @@ struct v_format { /* MDMX vector format */ | |||
598 | ;))))))) | 599 | ;))))))) |
599 | }; | 600 | }; |
600 | 601 | ||
602 | struct spec3_format { /* SPEC3 */ | ||
603 | BITFIELD_FIELD(unsigned int opcode:6, | ||
604 | BITFIELD_FIELD(unsigned int rs:5, | ||
605 | BITFIELD_FIELD(unsigned int rt:5, | ||
606 | BITFIELD_FIELD(signed int simmediate:9, | ||
607 | BITFIELD_FIELD(unsigned int func:7, | ||
608 | ;))))) | ||
609 | }; | ||
610 | |||
601 | /* | 611 | /* |
602 | * microMIPS instruction formats (32-bit length) | 612 | * microMIPS instruction formats (32-bit length) |
603 | * | 613 | * |
@@ -869,6 +879,7 @@ union mips_instruction { | |||
869 | struct b_format b_format; | 879 | struct b_format b_format; |
870 | struct ps_format ps_format; | 880 | struct ps_format ps_format; |
871 | struct v_format v_format; | 881 | struct v_format v_format; |
882 | struct spec3_format spec3_format; | ||
872 | struct fb_format fb_format; | 883 | struct fb_format fb_format; |
873 | struct fp0_format fp0_format; | 884 | struct fp0_format fp0_format; |
874 | struct mm_fp0_format mm_fp0_format; | 885 | struct mm_fp0_format mm_fp0_format; |