MIPS: Add instrunction format for BREAK and SYSCALL
Signed-off-by: David Daney <ddaney@caviumnetworks.com> To: linux-mips@linux-mips.org To: ananth@in.ibm.com To: anil.s.keshavamurthy@intel.com To: davem@davemloft.net To: masami.hiramatsu.pt@hitachi.com Cc: linux-kernel@vger.kernel.org Cc: hschauhan@nulltrace.org Patchwork: https://patchwork.linux-mips.org/patch/1524/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
ef771ad4ad
commit
2ea6399f55
@@ -247,6 +247,12 @@ struct ma_format { /* FPU multipy and add format (MIPS IV) */
|
|||||||
unsigned int fmt : 2;
|
unsigned int fmt : 2;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct b_format { /* BREAK and SYSCALL */
|
||||||
|
unsigned int opcode:6;
|
||||||
|
unsigned int code:20;
|
||||||
|
unsigned int func:6;
|
||||||
|
};
|
||||||
|
|
||||||
#elif defined(__MIPSEL__)
|
#elif defined(__MIPSEL__)
|
||||||
|
|
||||||
struct j_format { /* Jump format */
|
struct j_format { /* Jump format */
|
||||||
@@ -314,6 +320,12 @@ struct ma_format { /* FPU multipy and add format (MIPS IV) */
|
|||||||
unsigned int opcode : 6;
|
unsigned int opcode : 6;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct b_format { /* BREAK and SYSCALL */
|
||||||
|
unsigned int func:6;
|
||||||
|
unsigned int code:20;
|
||||||
|
unsigned int opcode:6;
|
||||||
|
};
|
||||||
|
|
||||||
#else /* !defined (__MIPSEB__) && !defined (__MIPSEL__) */
|
#else /* !defined (__MIPSEB__) && !defined (__MIPSEL__) */
|
||||||
#error "MIPS but neither __MIPSEL__ nor __MIPSEB__?"
|
#error "MIPS but neither __MIPSEL__ nor __MIPSEB__?"
|
||||||
#endif
|
#endif
|
||||||
@@ -329,6 +341,7 @@ union mips_instruction {
|
|||||||
struct r_format r_format;
|
struct r_format r_format;
|
||||||
struct f_format f_format;
|
struct f_format f_format;
|
||||||
struct ma_format ma_format;
|
struct ma_format ma_format;
|
||||||
|
struct b_format b_format;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* HACHACHAHCAHC ... */
|
/* HACHACHAHCAHC ... */
|
||||||
|
Reference in New Issue
Block a user