blob: c46d09b4857cd83f1502ce0f1070f6684d444670 [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_ASM_INST_H
20#define _UAPI_ASM_INST_H
21enum major_op {
22 spec_op, bcond_op, j_op, jal_op,
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 beq_op, bne_op, blez_op, bgtz_op,
25 addi_op, addiu_op, slti_op, sltiu_op,
26 andi_op, ori_op, xori_op, lui_op,
27 cop0_op, cop1_op, cop2_op, cop1x_op,
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 beql_op, bnel_op, blezl_op, bgtzl_op,
30 daddi_op, daddiu_op, ldl_op, ldr_op,
31 spec2_op, jalx_op, mdmx_op, spec3_op,
32 lb_op, lh_op, lwl_op, lw_op,
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 lbu_op, lhu_op, lwr_op, lwu_op,
35 sb_op, sh_op, swl_op, sw_op,
36 sdl_op, sdr_op, swr_op, cache_op,
37 ll_op, lwc1_op, lwc2_op, pref_op,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 lld_op, ldc1_op, ldc2_op, ld_op,
40 sc_op, swc1_op, swc2_op, major_3b_op,
41 scd_op, sdc1_op, sdc2_op, sd_op
42};
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44enum spec_op {
45 sll_op, movc_op, srl_op, sra_op,
46 sllv_op, pmon_op, srlv_op, srav_op,
47 jr_op, jalr_op, movz_op, movn_op,
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 syscall_op, break_op, spim_op, sync_op,
50 mfhi_op, mthi_op, mflo_op, mtlo_op,
51 dsllv_op, spec2_unused_op, dsrlv_op, dsrav_op,
52 mult_op, multu_op, div_op, divu_op,
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 dmult_op, dmultu_op, ddiv_op, ddivu_op,
55 add_op, addu_op, sub_op, subu_op,
56 and_op, or_op, xor_op, nor_op,
57 spec3_unused_op, spec4_unused_op, slt_op, sltu_op,
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 dadd_op, daddu_op, dsub_op, dsubu_op,
60 tge_op, tgeu_op, tlt_op, tltu_op,
61 teq_op, spec5_unused_op, tne_op, spec6_unused_op,
62 dsll_op, spec7_unused_op, dsrl_op, dsra_op,
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 dsll32_op, spec8_unused_op, dsrl32_op, dsra32_op
65};
66enum spec2_op {
67 madd_op, maddu_op, mul_op, spec2_3_unused_op,
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 msub_op, msubu_op,
70 clz_op = 0x20, clo_op,
71 dclz_op = 0x24, dclo_op,
72 sdbpp_op = 0x3f
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74};
75enum spec3_op {
76 ext_op, dextm_op, dextu_op, dext_op,
77 ins_op, dinsm_op, dinsu_op, dins_op,
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 lx_op = 0x0a,
80 bshfl_op = 0x20,
81 dbshfl_op = 0x24,
82 rdhwr_op = 0x3b
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84};
85enum rt_op {
86 bltz_op, bgez_op, bltzl_op, bgezl_op,
87 spimi_op, unused_rt_op_0x05, unused_rt_op_0x06, unused_rt_op_0x07,
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 tgei_op, tgeiu_op, tlti_op, tltiu_op,
90 teqi_op, unused_0x0d_rt_op, tnei_op, unused_0x0f_rt_op,
91 bltzal_op, bgezal_op, bltzall_op, bgezall_op,
92 rt_op_0x14, rt_op_0x15, rt_op_0x16, rt_op_0x17,
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 rt_op_0x18, rt_op_0x19, rt_op_0x1a, rt_op_0x1b,
95 bposge32_op, rt_op_0x1d, rt_op_0x1e, rt_op_0x1f
96};
97enum cop_op {
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 mfc_op = 0x00, dmfc_op = 0x01,
Christopher Ferris38062f92014-07-09 15:33:25 -0700100 cfc_op = 0x02, mfhc_op = 0x03,
101 mtc_op = 0x04, dmtc_op = 0x05,
102 ctc_op = 0x06, mthc_op = 0x07,
Elliott Hughesabd62612013-11-08 11:45:48 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700104 bc_op = 0x08, cop_op = 0x10,
Elliott Hughesabd62612013-11-08 11:45:48 -0800105 copm_op = 0x18
106};
107enum bcop_op {
Elliott Hughesabd62612013-11-08 11:45:48 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700109 bcf_op, bct_op, bcfl_op, bctl_op
Elliott Hughesabd62612013-11-08 11:45:48 -0800110};
111enum cop0_coi_func {
112 tlbr_op = 0x01, tlbwi_op = 0x02,
Elliott Hughesabd62612013-11-08 11:45:48 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700114 tlbwr_op = 0x06, tlbp_op = 0x08,
Elliott Hughesabd62612013-11-08 11:45:48 -0800115 rfe_op = 0x10, eret_op = 0x18
116};
117enum cop0_com_func {
Elliott Hughesabd62612013-11-08 11:45:48 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700119 tlbr1_op = 0x01, tlbw_op = 0x02,
Elliott Hughesabd62612013-11-08 11:45:48 -0800120 tlbp1_op = 0x08, dctr_op = 0x09,
121 dctw_op = 0x0a
122};
Elliott Hughesabd62612013-11-08 11:45:48 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700124enum cop1_fmt {
Elliott Hughesabd62612013-11-08 11:45:48 -0800125 s_fmt, d_fmt, e_fmt, q_fmt,
126 w_fmt, l_fmt
127};
Elliott Hughesabd62612013-11-08 11:45:48 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700129enum cop1_sdw_func {
Elliott Hughesabd62612013-11-08 11:45:48 -0800130 fadd_op = 0x00, fsub_op = 0x01,
131 fmul_op = 0x02, fdiv_op = 0x03,
132 fsqrt_op = 0x04, fabs_op = 0x05,
Elliott Hughesabd62612013-11-08 11:45:48 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700134 fmov_op = 0x06, fneg_op = 0x07,
Elliott Hughesabd62612013-11-08 11:45:48 -0800135 froundl_op = 0x08, ftruncl_op = 0x09,
136 fceill_op = 0x0a, ffloorl_op = 0x0b,
137 fround_op = 0x0c, ftrunc_op = 0x0d,
Elliott Hughesabd62612013-11-08 11:45:48 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700139 fceil_op = 0x0e, ffloor_op = 0x0f,
Elliott Hughesabd62612013-11-08 11:45:48 -0800140 fmovc_op = 0x11, fmovz_op = 0x12,
141 fmovn_op = 0x13, frecip_op = 0x15,
142 frsqrt_op = 0x16, fcvts_op = 0x20,
Elliott Hughesabd62612013-11-08 11:45:48 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700144 fcvtd_op = 0x21, fcvte_op = 0x22,
Elliott Hughesabd62612013-11-08 11:45:48 -0800145 fcvtw_op = 0x24, fcvtl_op = 0x25,
146 fcmp_op = 0x30
147};
Christopher Ferris38062f92014-07-09 15:33:25 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800149enum cop1x_func {
Elliott Hughesabd62612013-11-08 11:45:48 -0800150 lwxc1_op = 0x00, ldxc1_op = 0x01,
Christopher Ferris38062f92014-07-09 15:33:25 -0700151 swxc1_op = 0x08, sdxc1_op = 0x09,
152 pfetch_op = 0x0f, madd_s_op = 0x20,
Elliott Hughesabd62612013-11-08 11:45:48 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700154 madd_d_op = 0x21, madd_e_op = 0x22,
Elliott Hughesabd62612013-11-08 11:45:48 -0800155 msub_s_op = 0x28, msub_d_op = 0x29,
156 msub_e_op = 0x2a, nmadd_s_op = 0x30,
157 nmadd_d_op = 0x31, nmadd_e_op = 0x32,
Elliott Hughesabd62612013-11-08 11:45:48 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700159 nmsub_s_op = 0x38, nmsub_d_op = 0x39,
Elliott Hughesabd62612013-11-08 11:45:48 -0800160 nmsub_e_op = 0x3a
161};
162enum mad_func {
Elliott Hughesabd62612013-11-08 11:45:48 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700164 madd_fp_op = 0x08, msub_fp_op = 0x0a,
Elliott Hughesabd62612013-11-08 11:45:48 -0800165 nmadd_fp_op = 0x0c, nmsub_fp_op = 0x0e
166};
167enum lx_func {
Elliott Hughesabd62612013-11-08 11:45:48 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700169 lwx_op = 0x00,
Elliott Hughesabd62612013-11-08 11:45:48 -0800170 lhx_op = 0x04,
171 lbux_op = 0x06,
172 ldx_op = 0x08,
Elliott Hughesabd62612013-11-08 11:45:48 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700174 lwux_op = 0x10,
Elliott Hughesabd62612013-11-08 11:45:48 -0800175 lhux_op = 0x14,
176 lbx_op = 0x16,
177};
Elliott Hughesabd62612013-11-08 11:45:48 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700179enum mm_major_op {
Elliott Hughesabd62612013-11-08 11:45:48 -0800180 mm_pool32a_op, mm_pool16a_op, mm_lbu16_op, mm_move16_op,
181 mm_addi32_op, mm_lbu32_op, mm_sb32_op, mm_lb32_op,
182 mm_pool32b_op, mm_pool16b_op, mm_lhu16_op, mm_andi16_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700184 mm_addiu32_op, mm_lhu32_op, mm_sh32_op, mm_lh32_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800185 mm_pool32i_op, mm_pool16c_op, mm_lwsp16_op, mm_pool16d_op,
186 mm_ori32_op, mm_pool32f_op, mm_reserved1_op, mm_reserved2_op,
187 mm_pool32c_op, mm_lwgp16_op, mm_lw16_op, mm_pool16e_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700189 mm_xori32_op, mm_jals32_op, mm_addiupc_op, mm_reserved3_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800190 mm_reserved4_op, mm_pool16f_op, mm_sb16_op, mm_beqz16_op,
191 mm_slti32_op, mm_beq32_op, mm_swc132_op, mm_lwc132_op,
192 mm_reserved5_op, mm_reserved6_op, mm_sh16_op, mm_bnez16_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700194 mm_sltiu32_op, mm_bne32_op, mm_sdc132_op, mm_ldc132_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800195 mm_reserved7_op, mm_reserved8_op, mm_swsp16_op, mm_b16_op,
196 mm_andi32_op, mm_j32_op, mm_sd32_op, mm_ld32_op,
197 mm_reserved11_op, mm_reserved12_op, mm_sw16_op, mm_li16_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700199 mm_jalx32_op, mm_jal32_op, mm_sw32_op, mm_lw32_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800200};
201enum mm_32i_minor_op {
202 mm_bltz_op, mm_bltzal_op, mm_bgez_op, mm_bgezal_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700204 mm_blez_op, mm_bnezc_op, mm_bgtz_op, mm_beqzc_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800205 mm_tlti_op, mm_tgei_op, mm_tltiu_op, mm_tgeiu_op,
206 mm_tnei_op, mm_lui_op, mm_teqi_op, mm_reserved13_op,
207 mm_synci_op, mm_bltzals_op, mm_reserved14_op, mm_bgezals_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700209 mm_bc2f_op, mm_bc2t_op, mm_reserved15_op, mm_reserved16_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800210 mm_reserved17_op, mm_reserved18_op, mm_bposge64_op, mm_bposge32_op,
211 mm_bc1f_op, mm_bc1t_op, mm_reserved19_op, mm_reserved20_op,
212 mm_bc1any2f_op, mm_bc1any2t_op, mm_bc1any4f_op, mm_bc1any4t_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700214};
Elliott Hughesabd62612013-11-08 11:45:48 -0800215enum mm_32a_minor_op {
216 mm_sll32_op = 0x000,
217 mm_ins_op = 0x00c,
Elliott Hughesabd62612013-11-08 11:45:48 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700219 mm_ext_op = 0x02c,
Elliott Hughesabd62612013-11-08 11:45:48 -0800220 mm_pool32axf_op = 0x03c,
221 mm_srl32_op = 0x040,
222 mm_sra_op = 0x080,
Elliott Hughesabd62612013-11-08 11:45:48 -0800223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700224 mm_rotr_op = 0x0c0,
Elliott Hughesabd62612013-11-08 11:45:48 -0800225 mm_lwxs_op = 0x118,
226 mm_addu32_op = 0x150,
227 mm_subu32_op = 0x1d0,
Elliott Hughesabd62612013-11-08 11:45:48 -0800228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700229 mm_and_op = 0x250,
Elliott Hughesabd62612013-11-08 11:45:48 -0800230 mm_or32_op = 0x290,
231 mm_xor32_op = 0x310,
232};
Elliott Hughesabd62612013-11-08 11:45:48 -0800233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700234enum mm_32b_func {
Elliott Hughesabd62612013-11-08 11:45:48 -0800235 mm_lwc2_func = 0x0,
236 mm_lwp_func = 0x1,
237 mm_ldc2_func = 0x2,
Elliott Hughesabd62612013-11-08 11:45:48 -0800238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700239 mm_ldp_func = 0x4,
Elliott Hughesabd62612013-11-08 11:45:48 -0800240 mm_lwm32_func = 0x5,
241 mm_cache_func = 0x6,
242 mm_ldm_func = 0x7,
Elliott Hughesabd62612013-11-08 11:45:48 -0800243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700244 mm_swc2_func = 0x8,
Elliott Hughesabd62612013-11-08 11:45:48 -0800245 mm_swp_func = 0x9,
246 mm_sdc2_func = 0xa,
247 mm_sdp_func = 0xc,
Elliott Hughesabd62612013-11-08 11:45:48 -0800248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700249 mm_swm32_func = 0xd,
Elliott Hughesabd62612013-11-08 11:45:48 -0800250 mm_sdm_func = 0xf,
251};
252enum mm_32c_func {
Elliott Hughesabd62612013-11-08 11:45:48 -0800253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700254 mm_pref_func = 0x2,
Elliott Hughesabd62612013-11-08 11:45:48 -0800255 mm_ll_func = 0x3,
256 mm_swr_func = 0x9,
257 mm_sc_func = 0xb,
Elliott Hughesabd62612013-11-08 11:45:48 -0800258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700259 mm_lwu_func = 0xe,
Elliott Hughesabd62612013-11-08 11:45:48 -0800260};
261enum mm_32axf_minor_op {
262 mm_mfc0_op = 0x003,
Elliott Hughesabd62612013-11-08 11:45:48 -0800263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700264 mm_mtc0_op = 0x00b,
Elliott Hughesabd62612013-11-08 11:45:48 -0800265 mm_tlbp_op = 0x00d,
266 mm_jalr_op = 0x03c,
267 mm_tlbr_op = 0x04d,
Elliott Hughesabd62612013-11-08 11:45:48 -0800268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700269 mm_jalrhb_op = 0x07c,
Elliott Hughesabd62612013-11-08 11:45:48 -0800270 mm_tlbwi_op = 0x08d,
271 mm_tlbwr_op = 0x0cd,
272 mm_jalrs_op = 0x13c,
Elliott Hughesabd62612013-11-08 11:45:48 -0800273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700274 mm_jalrshb_op = 0x17c,
Elliott Hughesabd62612013-11-08 11:45:48 -0800275 mm_syscall_op = 0x22d,
276 mm_eret_op = 0x3cd,
277};
Elliott Hughesabd62612013-11-08 11:45:48 -0800278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700279enum mm_32f_minor_op {
Elliott Hughesabd62612013-11-08 11:45:48 -0800280 mm_32f_00_op = 0x00,
281 mm_32f_01_op = 0x01,
282 mm_32f_02_op = 0x02,
Elliott Hughesabd62612013-11-08 11:45:48 -0800283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700284 mm_32f_10_op = 0x08,
Elliott Hughesabd62612013-11-08 11:45:48 -0800285 mm_32f_11_op = 0x09,
286 mm_32f_12_op = 0x0a,
287 mm_32f_20_op = 0x10,
Elliott Hughesabd62612013-11-08 11:45:48 -0800288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700289 mm_32f_30_op = 0x18,
Elliott Hughesabd62612013-11-08 11:45:48 -0800290 mm_32f_40_op = 0x20,
291 mm_32f_41_op = 0x21,
292 mm_32f_42_op = 0x22,
Elliott Hughesabd62612013-11-08 11:45:48 -0800293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700294 mm_32f_50_op = 0x28,
Elliott Hughesabd62612013-11-08 11:45:48 -0800295 mm_32f_51_op = 0x29,
296 mm_32f_52_op = 0x2a,
297 mm_32f_60_op = 0x30,
Elliott Hughesabd62612013-11-08 11:45:48 -0800298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700299 mm_32f_70_op = 0x38,
Elliott Hughesabd62612013-11-08 11:45:48 -0800300 mm_32f_73_op = 0x3b,
301 mm_32f_74_op = 0x3c,
302};
Elliott Hughesabd62612013-11-08 11:45:48 -0800303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700304enum mm_32f_10_minor_op {
Elliott Hughesabd62612013-11-08 11:45:48 -0800305 mm_lwxc1_op = 0x1,
306 mm_swxc1_op,
307 mm_ldxc1_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700309 mm_sdxc1_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800310 mm_luxc1_op,
311 mm_suxc1_op,
312};
Elliott Hughesabd62612013-11-08 11:45:48 -0800313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700314enum mm_32f_func {
Elliott Hughesabd62612013-11-08 11:45:48 -0800315 mm_lwxc1_func = 0x048,
316 mm_swxc1_func = 0x088,
317 mm_ldxc1_func = 0x0c8,
Elliott Hughesabd62612013-11-08 11:45:48 -0800318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700319 mm_sdxc1_func = 0x108,
Elliott Hughesabd62612013-11-08 11:45:48 -0800320};
321enum mm_32f_40_minor_op {
322 mm_fmovf_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700324 mm_fmovt_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800325};
326enum mm_32f_60_minor_op {
327 mm_fadd_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700329 mm_fsub_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800330 mm_fmul_op,
331 mm_fdiv_op,
332};
Elliott Hughesabd62612013-11-08 11:45:48 -0800333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700334enum mm_32f_70_minor_op {
Elliott Hughesabd62612013-11-08 11:45:48 -0800335 mm_fmovn_op,
336 mm_fmovz_op,
337};
Elliott Hughesabd62612013-11-08 11:45:48 -0800338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700339enum mm_32f_73_minor_op {
Elliott Hughesabd62612013-11-08 11:45:48 -0800340 mm_fmov0_op = 0x01,
341 mm_fcvtl_op = 0x04,
342 mm_movf0_op = 0x05,
Elliott Hughesabd62612013-11-08 11:45:48 -0800343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700344 mm_frsqrt_op = 0x08,
Elliott Hughesabd62612013-11-08 11:45:48 -0800345 mm_ffloorl_op = 0x0c,
346 mm_fabs0_op = 0x0d,
347 mm_fcvtw_op = 0x24,
Elliott Hughesabd62612013-11-08 11:45:48 -0800348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700349 mm_movt0_op = 0x25,
Elliott Hughesabd62612013-11-08 11:45:48 -0800350 mm_fsqrt_op = 0x28,
351 mm_ffloorw_op = 0x2c,
352 mm_fneg0_op = 0x2d,
Elliott Hughesabd62612013-11-08 11:45:48 -0800353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700354 mm_cfc1_op = 0x40,
Elliott Hughesabd62612013-11-08 11:45:48 -0800355 mm_frecip_op = 0x48,
356 mm_fceill_op = 0x4c,
357 mm_fcvtd0_op = 0x4d,
Elliott Hughesabd62612013-11-08 11:45:48 -0800358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700359 mm_ctc1_op = 0x60,
Elliott Hughesabd62612013-11-08 11:45:48 -0800360 mm_fceilw_op = 0x6c,
361 mm_fcvts0_op = 0x6d,
362 mm_mfc1_op = 0x80,
Elliott Hughesabd62612013-11-08 11:45:48 -0800363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700364 mm_fmov1_op = 0x81,
Elliott Hughesabd62612013-11-08 11:45:48 -0800365 mm_movf1_op = 0x85,
366 mm_ftruncl_op = 0x8c,
367 mm_fabs1_op = 0x8d,
Elliott Hughesabd62612013-11-08 11:45:48 -0800368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700369 mm_mtc1_op = 0xa0,
Elliott Hughesabd62612013-11-08 11:45:48 -0800370 mm_movt1_op = 0xa5,
371 mm_ftruncw_op = 0xac,
372 mm_fneg1_op = 0xad,
Elliott Hughesabd62612013-11-08 11:45:48 -0800373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700374 mm_mfhc1_op = 0xc0,
375 mm_froundl_op = 0xcc,
Elliott Hughesabd62612013-11-08 11:45:48 -0800376 mm_fcvtd1_op = 0xcd,
Christopher Ferris38062f92014-07-09 15:33:25 -0700377 mm_mthc1_op = 0xe0,
378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800379 mm_froundw_op = 0xec,
380 mm_fcvts1_op = 0xed,
381};
Elliott Hughesabd62612013-11-08 11:45:48 -0800382enum mm_16c_minor_op {
Christopher Ferris38062f92014-07-09 15:33:25 -0700383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800384 mm_lwm16_op = 0x04,
385 mm_swm16_op = 0x05,
Christopher Ferris38062f92014-07-09 15:33:25 -0700386 mm_jr16_op = 0x0c,
387 mm_jrc_op = 0x0d,
Elliott Hughesabd62612013-11-08 11:45:48 -0800388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700389 mm_jalr16_op = 0x0e,
390 mm_jalrs16_op = 0x0f,
391 mm_jraddiusp_op = 0x18,
Elliott Hughesabd62612013-11-08 11:45:48 -0800392};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800394enum mm_16d_minor_op {
395 mm_addius5_func,
396 mm_addiusp_func,
Elliott Hughesabd62612013-11-08 11:45:48 -0800397};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800399enum MIPS16e_ops {
400 MIPS16e_jal_op = 003,
401 MIPS16e_ld_op = 007,
Elliott Hughesabd62612013-11-08 11:45:48 -0800402 MIPS16e_i8_op = 014,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800404 MIPS16e_sd_op = 017,
405 MIPS16e_lb_op = 020,
406 MIPS16e_lh_op = 021,
Elliott Hughesabd62612013-11-08 11:45:48 -0800407 MIPS16e_lwsp_op = 022,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800409 MIPS16e_lw_op = 023,
410 MIPS16e_lbu_op = 024,
411 MIPS16e_lhu_op = 025,
Elliott Hughesabd62612013-11-08 11:45:48 -0800412 MIPS16e_lwpc_op = 026,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800414 MIPS16e_lwu_op = 027,
415 MIPS16e_sb_op = 030,
416 MIPS16e_sh_op = 031,
Elliott Hughesabd62612013-11-08 11:45:48 -0800417 MIPS16e_swsp_op = 032,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800419 MIPS16e_sw_op = 033,
420 MIPS16e_rr_op = 035,
421 MIPS16e_extend_op = 036,
Elliott Hughesabd62612013-11-08 11:45:48 -0800422 MIPS16e_i64_op = 037,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800424};
425enum MIPS16e_i64_func {
426 MIPS16e_ldsp_func,
Elliott Hughesabd62612013-11-08 11:45:48 -0800427 MIPS16e_sdsp_func,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800429 MIPS16e_sdrasp_func,
430 MIPS16e_dadjsp_func,
431 MIPS16e_ldpc_func,
Elliott Hughesabd62612013-11-08 11:45:48 -0800432};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800434enum MIPS16e_rr_func {
435 MIPS16e_jr_func,
436};
Elliott Hughesabd62612013-11-08 11:45:48 -0800437enum MIPS6e_i8_func {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800439 MIPS16e_swrasp_func = 02,
440};
441#define MM_NOP16 0x0c00
Elliott Hughesabd62612013-11-08 11:45:48 -0800442#define BITFIELD_FIELD(field, more) more field;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800444struct j_format {
Elliott Hughesabd62612013-11-08 11:45:48 -0800445 BITFIELD_FIELD(unsigned int opcode : 6,
446 BITFIELD_FIELD(unsigned int target : 26,
447 ;))
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800449};
Elliott Hughesabd62612013-11-08 11:45:48 -0800450struct i_format {
451 BITFIELD_FIELD(unsigned int opcode : 6,
452 BITFIELD_FIELD(unsigned int rs : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800454 BITFIELD_FIELD(unsigned int rt : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800455 BITFIELD_FIELD(signed int simmediate : 16,
456 ;))))
457};
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800459struct u_format {
Elliott Hughesabd62612013-11-08 11:45:48 -0800460 BITFIELD_FIELD(unsigned int opcode : 6,
461 BITFIELD_FIELD(unsigned int rs : 5,
462 BITFIELD_FIELD(unsigned int rt : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800464 BITFIELD_FIELD(unsigned int uimmediate : 16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800465 ;))))
466};
467struct c_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800469 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800470 BITFIELD_FIELD(unsigned int rs : 5,
471 BITFIELD_FIELD(unsigned int c_op : 3,
472 BITFIELD_FIELD(unsigned int cache : 2,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800474 BITFIELD_FIELD(unsigned int simmediate : 16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800475 ;)))))
476};
477struct r_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800479 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800480 BITFIELD_FIELD(unsigned int rs : 5,
481 BITFIELD_FIELD(unsigned int rt : 5,
482 BITFIELD_FIELD(unsigned int rd : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800484 BITFIELD_FIELD(unsigned int re : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800485 BITFIELD_FIELD(unsigned int func : 6,
486 ;))))))
487};
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800489struct p_format {
Elliott Hughesabd62612013-11-08 11:45:48 -0800490 BITFIELD_FIELD(unsigned int opcode : 6,
491 BITFIELD_FIELD(unsigned int rs : 5,
492 BITFIELD_FIELD(unsigned int rt : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800494 BITFIELD_FIELD(unsigned int rd : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800495 BITFIELD_FIELD(unsigned int re : 5,
496 BITFIELD_FIELD(unsigned int func : 6,
497 ;))))))
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800499};
Elliott Hughesabd62612013-11-08 11:45:48 -0800500struct f_format {
501 BITFIELD_FIELD(unsigned int opcode : 6,
502 BITFIELD_FIELD(unsigned int : 1,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800504 BITFIELD_FIELD(unsigned int fmt : 4,
Elliott Hughesabd62612013-11-08 11:45:48 -0800505 BITFIELD_FIELD(unsigned int rt : 5,
506 BITFIELD_FIELD(unsigned int rd : 5,
507 BITFIELD_FIELD(unsigned int re : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800509 BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800510 ;)))))))
511};
512struct ma_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800514 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800515 BITFIELD_FIELD(unsigned int fr : 5,
516 BITFIELD_FIELD(unsigned int ft : 5,
517 BITFIELD_FIELD(unsigned int fs : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800519 BITFIELD_FIELD(unsigned int fd : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800520 BITFIELD_FIELD(unsigned int func : 4,
521 BITFIELD_FIELD(unsigned int fmt : 2,
522 ;)))))))
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800524};
Elliott Hughesabd62612013-11-08 11:45:48 -0800525struct b_format {
526 BITFIELD_FIELD(unsigned int opcode : 6,
527 BITFIELD_FIELD(unsigned int code : 20,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800529 BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800530 ;)))
531};
532struct ps_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800534 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800535 BITFIELD_FIELD(unsigned int rs : 5,
536 BITFIELD_FIELD(unsigned int ft : 5,
537 BITFIELD_FIELD(unsigned int fs : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800539 BITFIELD_FIELD(unsigned int fd : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800540 BITFIELD_FIELD(unsigned int func : 6,
541 ;))))))
542};
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800544struct v_format {
Elliott Hughesabd62612013-11-08 11:45:48 -0800545 BITFIELD_FIELD(unsigned int opcode : 6,
546 BITFIELD_FIELD(unsigned int sel : 4,
547 BITFIELD_FIELD(unsigned int fmt : 1,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800549 BITFIELD_FIELD(unsigned int vt : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800550 BITFIELD_FIELD(unsigned int vs : 5,
551 BITFIELD_FIELD(unsigned int vd : 5,
552 BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800554 ;)))))))
Elliott Hughesabd62612013-11-08 11:45:48 -0800555};
556struct fb_format {
557 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800559 BITFIELD_FIELD(unsigned int bc : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800560 BITFIELD_FIELD(unsigned int cc : 3,
561 BITFIELD_FIELD(unsigned int flag : 2,
562 BITFIELD_FIELD(signed int simmediate : 16,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800564 ;)))))
Elliott Hughesabd62612013-11-08 11:45:48 -0800565};
566struct fp0_format {
567 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800569 BITFIELD_FIELD(unsigned int fmt : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800570 BITFIELD_FIELD(unsigned int ft : 5,
571 BITFIELD_FIELD(unsigned int fs : 5,
572 BITFIELD_FIELD(unsigned int fd : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800574 BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800575 ;))))))
576};
577struct mm_fp0_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800579 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800580 BITFIELD_FIELD(unsigned int ft : 5,
581 BITFIELD_FIELD(unsigned int fs : 5,
582 BITFIELD_FIELD(unsigned int fd : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800584 BITFIELD_FIELD(unsigned int fmt : 3,
Elliott Hughesabd62612013-11-08 11:45:48 -0800585 BITFIELD_FIELD(unsigned int op : 2,
586 BITFIELD_FIELD(unsigned int func : 6,
587 ;)))))))
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800589};
Elliott Hughesabd62612013-11-08 11:45:48 -0800590struct fp1_format {
591 BITFIELD_FIELD(unsigned int opcode : 6,
592 BITFIELD_FIELD(unsigned int op : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800594 BITFIELD_FIELD(unsigned int rt : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800595 BITFIELD_FIELD(unsigned int fs : 5,
596 BITFIELD_FIELD(unsigned int fd : 5,
597 BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800599 ;))))))
Elliott Hughesabd62612013-11-08 11:45:48 -0800600};
601struct mm_fp1_format {
602 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800604 BITFIELD_FIELD(unsigned int rt : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800605 BITFIELD_FIELD(unsigned int fs : 5,
606 BITFIELD_FIELD(unsigned int fmt : 2,
607 BITFIELD_FIELD(unsigned int op : 8,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800609 BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800610 ;))))))
611};
612struct mm_fp2_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800614 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800615 BITFIELD_FIELD(unsigned int fd : 5,
616 BITFIELD_FIELD(unsigned int fs : 5,
617 BITFIELD_FIELD(unsigned int cc : 3,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800619 BITFIELD_FIELD(unsigned int zero : 2,
Elliott Hughesabd62612013-11-08 11:45:48 -0800620 BITFIELD_FIELD(unsigned int fmt : 2,
621 BITFIELD_FIELD(unsigned int op : 3,
622 BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800624 ;))))))))
Elliott Hughesabd62612013-11-08 11:45:48 -0800625};
626struct mm_fp3_format {
627 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800629 BITFIELD_FIELD(unsigned int rt : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800630 BITFIELD_FIELD(unsigned int fs : 5,
631 BITFIELD_FIELD(unsigned int fmt : 3,
632 BITFIELD_FIELD(unsigned int op : 7,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800634 BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800635 ;))))))
636};
637struct mm_fp4_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800639 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800640 BITFIELD_FIELD(unsigned int rt : 5,
641 BITFIELD_FIELD(unsigned int fs : 5,
642 BITFIELD_FIELD(unsigned int cc : 3,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800644 BITFIELD_FIELD(unsigned int fmt : 3,
Elliott Hughesabd62612013-11-08 11:45:48 -0800645 BITFIELD_FIELD(unsigned int cond : 4,
646 BITFIELD_FIELD(unsigned int func : 6,
647 ;)))))))
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800649};
Elliott Hughesabd62612013-11-08 11:45:48 -0800650struct mm_fp5_format {
651 BITFIELD_FIELD(unsigned int opcode : 6,
652 BITFIELD_FIELD(unsigned int index : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800654 BITFIELD_FIELD(unsigned int base : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800655 BITFIELD_FIELD(unsigned int fd : 5,
656 BITFIELD_FIELD(unsigned int op : 5,
657 BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800659 ;))))))
Elliott Hughesabd62612013-11-08 11:45:48 -0800660};
661struct fp6_format {
662 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800664 BITFIELD_FIELD(unsigned int fr : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800665 BITFIELD_FIELD(unsigned int ft : 5,
666 BITFIELD_FIELD(unsigned int fs : 5,
667 BITFIELD_FIELD(unsigned int fd : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800669 BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800670 ;))))))
671};
672struct mm_fp6_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800674 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800675 BITFIELD_FIELD(unsigned int ft : 5,
676 BITFIELD_FIELD(unsigned int fs : 5,
677 BITFIELD_FIELD(unsigned int fd : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800679 BITFIELD_FIELD(unsigned int fr : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800680 BITFIELD_FIELD(unsigned int func : 6,
681 ;))))))
682};
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800684struct mm_i_format {
Elliott Hughesabd62612013-11-08 11:45:48 -0800685 BITFIELD_FIELD(unsigned int opcode : 6,
686 BITFIELD_FIELD(unsigned int rt : 5,
687 BITFIELD_FIELD(unsigned int rs : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800689 BITFIELD_FIELD(signed int simmediate : 16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800690 ;))))
691};
692struct mm_m_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800694 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800695 BITFIELD_FIELD(unsigned int rd : 5,
696 BITFIELD_FIELD(unsigned int base : 5,
697 BITFIELD_FIELD(unsigned int func : 4,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800699 BITFIELD_FIELD(signed int simmediate : 12,
Elliott Hughesabd62612013-11-08 11:45:48 -0800700 ;)))))
701};
702struct mm_x_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800704 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800705 BITFIELD_FIELD(unsigned int index : 5,
706 BITFIELD_FIELD(unsigned int base : 5,
707 BITFIELD_FIELD(unsigned int rd : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800709 BITFIELD_FIELD(unsigned int func : 11,
Elliott Hughesabd62612013-11-08 11:45:48 -0800710 ;)))))
711};
712struct mm_b0_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800714 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800715 BITFIELD_FIELD(signed int simmediate : 10,
716 BITFIELD_FIELD(unsigned int : 16,
717 ;)))
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800719};
Elliott Hughesabd62612013-11-08 11:45:48 -0800720struct mm_b1_format {
721 BITFIELD_FIELD(unsigned int opcode : 6,
722 BITFIELD_FIELD(unsigned int rs : 3,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800724 BITFIELD_FIELD(signed int simmediate : 7,
Elliott Hughesabd62612013-11-08 11:45:48 -0800725 BITFIELD_FIELD(unsigned int : 16,
726 ;))))
727};
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800729struct mm16_m_format {
Elliott Hughesabd62612013-11-08 11:45:48 -0800730 BITFIELD_FIELD(unsigned int opcode : 6,
731 BITFIELD_FIELD(unsigned int func : 4,
732 BITFIELD_FIELD(unsigned int rlist : 2,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800734 BITFIELD_FIELD(unsigned int imm : 4,
Elliott Hughesabd62612013-11-08 11:45:48 -0800735 BITFIELD_FIELD(unsigned int : 16,
736 ;)))))
737};
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800739struct mm16_rb_format {
Elliott Hughesabd62612013-11-08 11:45:48 -0800740 BITFIELD_FIELD(unsigned int opcode : 6,
741 BITFIELD_FIELD(unsigned int rt : 3,
742 BITFIELD_FIELD(unsigned int base : 3,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800744 BITFIELD_FIELD(signed int simmediate : 4,
Elliott Hughesabd62612013-11-08 11:45:48 -0800745 BITFIELD_FIELD(unsigned int : 16,
746 ;)))))
747};
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800749struct mm16_r3_format {
Elliott Hughesabd62612013-11-08 11:45:48 -0800750 BITFIELD_FIELD(unsigned int opcode : 6,
751 BITFIELD_FIELD(unsigned int rt : 3,
752 BITFIELD_FIELD(signed int simmediate : 7,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800754 BITFIELD_FIELD(unsigned int : 16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800755 ;))))
756};
757struct mm16_r5_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800759 BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800760 BITFIELD_FIELD(unsigned int rt : 5,
761 BITFIELD_FIELD(signed int simmediate : 5,
762 BITFIELD_FIELD(unsigned int : 16,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800764 ;))))
Elliott Hughesabd62612013-11-08 11:45:48 -0800765};
766struct m16e_rr {
767 BITFIELD_FIELD(unsigned int opcode : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800769 BITFIELD_FIELD(unsigned int rx : 3,
Elliott Hughesabd62612013-11-08 11:45:48 -0800770 BITFIELD_FIELD(unsigned int nd : 1,
771 BITFIELD_FIELD(unsigned int l : 1,
772 BITFIELD_FIELD(unsigned int ra : 1,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800774 BITFIELD_FIELD(unsigned int func : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800775 ;))))))
776};
777struct m16e_jal {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800779 BITFIELD_FIELD(unsigned int opcode : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800780 BITFIELD_FIELD(unsigned int x : 1,
781 BITFIELD_FIELD(unsigned int imm20_16 : 5,
782 BITFIELD_FIELD(signed int imm25_21 : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700783/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800784 ;))))
Elliott Hughesabd62612013-11-08 11:45:48 -0800785};
786struct m16e_i64 {
787 BITFIELD_FIELD(unsigned int opcode : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800789 BITFIELD_FIELD(unsigned int func : 3,
Elliott Hughesabd62612013-11-08 11:45:48 -0800790 BITFIELD_FIELD(unsigned int imm : 8,
791 ;)))
792};
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700793/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800794struct m16e_ri64 {
Elliott Hughesabd62612013-11-08 11:45:48 -0800795 BITFIELD_FIELD(unsigned int opcode : 5,
796 BITFIELD_FIELD(unsigned int func : 3,
797 BITFIELD_FIELD(unsigned int ry : 3,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700798/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800799 BITFIELD_FIELD(unsigned int imm : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800800 ;))))
801};
802struct m16e_ri {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700803/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800804 BITFIELD_FIELD(unsigned int opcode : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800805 BITFIELD_FIELD(unsigned int rx : 3,
806 BITFIELD_FIELD(unsigned int imm : 8,
807 ;)))
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700808/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800809};
Elliott Hughesabd62612013-11-08 11:45:48 -0800810struct m16e_rri {
811 BITFIELD_FIELD(unsigned int opcode : 5,
812 BITFIELD_FIELD(unsigned int rx : 3,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700813/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800814 BITFIELD_FIELD(unsigned int ry : 3,
Elliott Hughesabd62612013-11-08 11:45:48 -0800815 BITFIELD_FIELD(unsigned int imm : 5,
816 ;))))
817};
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700818/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800819struct m16e_i8 {
Elliott Hughesabd62612013-11-08 11:45:48 -0800820 BITFIELD_FIELD(unsigned int opcode : 5,
821 BITFIELD_FIELD(unsigned int func : 3,
822 BITFIELD_FIELD(unsigned int imm : 8,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700823/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800824 ;)))
Elliott Hughesabd62612013-11-08 11:45:48 -0800825};
826union mips_instruction {
827 unsigned int word;
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700828/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800829 unsigned short halfword[2];
Elliott Hughesabd62612013-11-08 11:45:48 -0800830 unsigned char byte[4];
831 struct j_format j_format;
832 struct i_format i_format;
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700833/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800834 struct u_format u_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800835 struct c_format c_format;
836 struct r_format r_format;
837 struct p_format p_format;
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700838/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800839 struct f_format f_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800840 struct ma_format ma_format;
841 struct b_format b_format;
842 struct ps_format ps_format;
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700843/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800844 struct v_format v_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800845 struct fb_format fb_format;
846 struct fp0_format fp0_format;
847 struct mm_fp0_format mm_fp0_format;
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700848/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800849 struct fp1_format fp1_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800850 struct mm_fp1_format mm_fp1_format;
851 struct mm_fp2_format mm_fp2_format;
852 struct mm_fp3_format mm_fp3_format;
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700853/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800854 struct mm_fp4_format mm_fp4_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800855 struct mm_fp5_format mm_fp5_format;
856 struct fp6_format fp6_format;
857 struct mm_fp6_format mm_fp6_format;
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700858/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800859 struct mm_i_format mm_i_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800860 struct mm_m_format mm_m_format;
861 struct mm_x_format mm_x_format;
862 struct mm_b0_format mm_b0_format;
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700863/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800864 struct mm_b1_format mm_b1_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800865 struct mm16_m_format mm16_m_format ;
866 struct mm16_rb_format mm16_rb_format;
867 struct mm16_r3_format mm16_r3_format;
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700868/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800869 struct mm16_r5_format mm16_r5_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800870};
871union mips16e_instruction {
872 unsigned int full : 16;
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700873/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800874 struct m16e_rr rr;
Elliott Hughesabd62612013-11-08 11:45:48 -0800875 struct m16e_jal jal;
876 struct m16e_i64 i64;
877 struct m16e_ri64 ri64;
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700878/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800879 struct m16e_ri ri;
Elliott Hughesabd62612013-11-08 11:45:48 -0800880 struct m16e_rri rri;
881 struct m16e_i8 i8;
882};
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700883/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800884#endif