summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/uasm.c
diff options
context:
space:
mode:
authorPaul Burton2013-12-24 04:50:35 +0100
committerPaul Burton2014-05-28 17:20:27 +0200
commit53ed138986e1022c2b6fef7f8e9731f5bf3e6af1 (patch)
treeb18132ab7697d3d2acf01c8b059fa91939a8e9c1 /arch/mips/mm/uasm.c
parentMIPS: uasm: add sync instruction (diff)
downloadkernel-qcow2-linux-53ed138986e1022c2b6fef7f8e9731f5bf3e6af1.tar.gz
kernel-qcow2-linux-53ed138986e1022c2b6fef7f8e9731f5bf3e6af1.tar.xz
kernel-qcow2-linux-53ed138986e1022c2b6fef7f8e9731f5bf3e6af1.zip
MIPS: uasm: add wait instruction
This patch allows use of the wait instruction from uasm. It will be used by a subsequent patch. Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Diffstat (limited to 'arch/mips/mm/uasm.c')
-rw-r--r--arch/mips/mm/uasm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/mm/uasm.c b/arch/mips/mm/uasm.c
index 7c1380127a82..46d2173e6f24 100644
--- a/arch/mips/mm/uasm.c
+++ b/arch/mips/mm/uasm.c
@@ -54,7 +54,7 @@ enum opcode {
insn_mtc0, insn_or, insn_ori, insn_pref, insn_rfe, insn_rotr, insn_sc,
insn_scd, insn_sd, insn_sll, insn_sra, insn_srl, insn_subu, insn_sw,
insn_sync, insn_syscall, insn_tlbp, insn_tlbr, insn_tlbwi, insn_tlbwr,
- insn_xor, insn_xori,
+ insn_wait, insn_xor, insn_xori,
};
struct insn {
@@ -276,6 +276,7 @@ I_0(_tlbp)
I_0(_tlbr)
I_0(_tlbwi)
I_0(_tlbwr)
+I_u1(_wait);
I_u3u1u2(_xor)
I_u2u1u3(_xori)
I_u2u1msbu3(_dins);