diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2014-04-08 07:47:12 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-05-30 09:54:38 -0400 |
commit | d6b3314b49e12e8c349deb4ca28e7028db00728f (patch) | |
tree | b7238bec333b372269e58db13540cd5dc3d04583 /arch | |
parent | ab9e4fa092db6c4beea8fde67261959520675456 (diff) |
MIPS: uasm: Add lh uam instruction
It will be used later on by bpf-jit
[ralf@linux-mips.org: Resolved conflict.]
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/6733/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/include/asm/uasm.h | 1 | ||||
-rw-r--r-- | arch/mips/mm/uasm-micromips.c | 1 | ||||
-rw-r--r-- | arch/mips/mm/uasm-mips.c | 1 | ||||
-rw-r--r-- | arch/mips/mm/uasm.c | 13 |
4 files changed, 10 insertions, 6 deletions
diff --git a/arch/mips/include/asm/uasm.h b/arch/mips/include/asm/uasm.h index d754ddc496d0..a096581168df 100644 --- a/arch/mips/include/asm/uasm.h +++ b/arch/mips/include/asm/uasm.h | |||
@@ -125,6 +125,7 @@ Ip_u2u1(_jalr); | |||
125 | Ip_u1(_jr); | 125 | Ip_u1(_jr); |
126 | Ip_u2s3u1(_ld); | 126 | Ip_u2s3u1(_ld); |
127 | Ip_u3u1u2(_ldx); | 127 | Ip_u3u1u2(_ldx); |
128 | Ip_u2s3u1(_lh); | ||
128 | Ip_u2s3u1(_ll); | 129 | Ip_u2s3u1(_ll); |
129 | Ip_u2s3u1(_lld); | 130 | Ip_u2s3u1(_lld); |
130 | Ip_u1s2(_lui); | 131 | Ip_u1s2(_lui); |
diff --git a/arch/mips/mm/uasm-micromips.c b/arch/mips/mm/uasm-micromips.c index 071a4c1c2024..99d63d9825ed 100644 --- a/arch/mips/mm/uasm-micromips.c +++ b/arch/mips/mm/uasm-micromips.c | |||
@@ -82,6 +82,7 @@ static struct insn insn_table_MM[] = { | |||
82 | { insn_jalr, M(mm_pool32a_op, 0, 0, 0, mm_jalr_op, mm_pool32axf_op), RT | RS }, | 82 | { insn_jalr, M(mm_pool32a_op, 0, 0, 0, mm_jalr_op, mm_pool32axf_op), RT | RS }, |
83 | { insn_jr, M(mm_pool32a_op, 0, 0, 0, mm_jalr_op, mm_pool32axf_op), RS }, | 83 | { insn_jr, M(mm_pool32a_op, 0, 0, 0, mm_jalr_op, mm_pool32axf_op), RS }, |
84 | { insn_ld, 0, 0 }, | 84 | { insn_ld, 0, 0 }, |
85 | { insn_lh, M(mm_lh32_op, 0, 0, 0, 0, 0), RS | RS | SIMM }, | ||
85 | { insn_ll, M(mm_pool32c_op, 0, 0, (mm_ll_func << 1), 0, 0), RS | RT | SIMM }, | 86 | { insn_ll, M(mm_pool32c_op, 0, 0, (mm_ll_func << 1), 0, 0), RS | RT | SIMM }, |
86 | { insn_lld, 0, 0 }, | 87 | { insn_lld, 0, 0 }, |
87 | { insn_lui, M(mm_pool32i_op, mm_lui_op, 0, 0, 0, 0), RS | SIMM }, | 88 | { insn_lui, M(mm_pool32i_op, mm_lui_op, 0, 0, 0, 0), RS | SIMM }, |
diff --git a/arch/mips/mm/uasm-mips.c b/arch/mips/mm/uasm-mips.c index c50d3b4b55a7..cb75d452ec0e 100644 --- a/arch/mips/mm/uasm-mips.c +++ b/arch/mips/mm/uasm-mips.c | |||
@@ -88,6 +88,7 @@ static struct insn insn_table[] = { | |||
88 | { insn_jr, M(spec_op, 0, 0, 0, 0, jr_op), RS }, | 88 | { insn_jr, M(spec_op, 0, 0, 0, 0, jr_op), RS }, |
89 | { insn_ld, M(ld_op, 0, 0, 0, 0, 0), RS | RT | SIMM }, | 89 | { insn_ld, M(ld_op, 0, 0, 0, 0, 0), RS | RT | SIMM }, |
90 | { insn_ldx, M(spec3_op, 0, 0, 0, ldx_op, lx_op), RS | RT | RD }, | 90 | { insn_ldx, M(spec3_op, 0, 0, 0, ldx_op, lx_op), RS | RT | RD }, |
91 | { insn_lh, M(lw_op, 0, 0, 0, 0, 0), RS | RT | SIMM }, | ||
91 | { insn_lld, M(lld_op, 0, 0, 0, 0, 0), RS | RT | SIMM }, | 92 | { insn_lld, M(lld_op, 0, 0, 0, 0, 0), RS | RT | SIMM }, |
92 | { insn_ll, M(ll_op, 0, 0, 0, 0, 0), RS | RT | SIMM }, | 93 | { insn_ll, M(ll_op, 0, 0, 0, 0, 0), RS | RT | SIMM }, |
93 | { insn_lui, M(lui_op, 0, 0, 0, 0, 0), RT | SIMM }, | 94 | { insn_lui, M(lui_op, 0, 0, 0, 0, 0), RT | SIMM }, |
diff --git a/arch/mips/mm/uasm.c b/arch/mips/mm/uasm.c index 678e41a57892..6ffb60136f91 100644 --- a/arch/mips/mm/uasm.c +++ b/arch/mips/mm/uasm.c | |||
@@ -50,12 +50,12 @@ enum opcode { | |||
50 | insn_divu, insn_dmfc0, insn_dmtc0, insn_drotr, insn_drotr32, insn_dsll, | 50 | insn_divu, insn_dmfc0, insn_dmtc0, insn_drotr, insn_drotr32, insn_dsll, |
51 | insn_dsll32, insn_dsra, insn_dsrl, insn_dsrl32, insn_dsubu, insn_eret, | 51 | insn_dsll32, insn_dsra, insn_dsrl, insn_dsrl32, insn_dsubu, insn_eret, |
52 | insn_ext, insn_ins, insn_j, insn_jal, insn_jalr, insn_jr, insn_ld, | 52 | insn_ext, insn_ins, insn_j, insn_jal, insn_jalr, insn_jr, insn_ld, |
53 | insn_ldx, insn_ll, insn_lld, insn_lui, insn_lw, insn_lwx, insn_mfc0, | 53 | insn_ldx, insn_lh, insn_ll, insn_lld, insn_lui, insn_lw, insn_lwx, |
54 | insn_mfhi, insn_mtc0, insn_or, insn_ori, insn_pref, insn_rfe, | 54 | insn_mfc0, insn_mfhi, insn_mtc0, insn_or, insn_ori, insn_pref, |
55 | insn_rotr, insn_sc, insn_scd, insn_sd, insn_sll, insn_sllv, insn_sltiu, | 55 | insn_rfe, insn_rotr, insn_sc, insn_scd, insn_sd, insn_sll, insn_sllv, |
56 | insn_sltu, insn_sra, insn_srl, insn_srlv, insn_subu, insn_sw, insn_sync, | 56 | insn_sltiu, insn_sltu, insn_sra, insn_srl, insn_srlv, insn_subu, |
57 | insn_syscall, insn_tlbp, insn_tlbr, insn_tlbwi, insn_tlbwr, insn_wait, | 57 | insn_sw, insn_sync, insn_syscall, insn_tlbp, insn_tlbr, insn_tlbwi, |
58 | insn_wsbh, insn_xor, insn_xori, insn_yield, | 58 | insn_tlbwr, insn_wait, insn_wsbh, insn_xor, insn_xori, insn_yield, |
59 | }; | 59 | }; |
60 | 60 | ||
61 | struct insn { | 61 | struct insn { |
@@ -269,6 +269,7 @@ I_u1(_jal) | |||
269 | I_u2u1(_jalr) | 269 | I_u2u1(_jalr) |
270 | I_u1(_jr) | 270 | I_u1(_jr) |
271 | I_u2s3u1(_ld) | 271 | I_u2s3u1(_ld) |
272 | I_u2s3u1(_lh) | ||
272 | I_u2s3u1(_ll) | 273 | I_u2s3u1(_ll) |
273 | I_u2s3u1(_lld) | 274 | I_u2s3u1(_lld) |
274 | I_u1s2(_lui) | 275 | I_u1s2(_lui) |