blob: 18b546528511a3032b5f7f0bf471b16c69c665cd [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
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070021#include <asm/bitfield.h>
Elliott Hughesabd62612013-11-08 11:45:48 -080022enum major_op {
Elliott Hughesabd62612013-11-08 11:45:48 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070024 spec_op, bcond_op, j_op, jal_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080025 beq_op, bne_op, blez_op, bgtz_op,
26 addi_op, addiu_op, slti_op, sltiu_op,
27 andi_op, ori_op, xori_op, lui_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070029 cop0_op, cop1_op, cop2_op, cop1x_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080030 beql_op, bnel_op, blezl_op, bgtzl_op,
31 daddi_op, daddiu_op, ldl_op, ldr_op,
32 spec2_op, jalx_op, mdmx_op, spec3_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070034 lb_op, lh_op, lwl_op, lw_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080035 lbu_op, lhu_op, lwr_op, lwu_op,
36 sb_op, sh_op, swl_op, sw_op,
37 sdl_op, sdr_op, swr_op, cache_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070039 ll_op, lwc1_op, lwc2_op, pref_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080040 lld_op, ldc1_op, ldc2_op, ld_op,
41 sc_op, swc1_op, swc2_op, major_3b_op,
42 scd_op, sdc1_op, sdc2_op, sd_op
Elliott Hughesabd62612013-11-08 11:45:48 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070044};
Elliott Hughesabd62612013-11-08 11:45:48 -080045enum spec_op {
46 sll_op, movc_op, srl_op, sra_op,
47 sllv_op, pmon_op, srlv_op, srav_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070049 jr_op, jalr_op, movz_op, movn_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080050 syscall_op, break_op, spim_op, sync_op,
51 mfhi_op, mthi_op, mflo_op, mtlo_op,
52 dsllv_op, spec2_unused_op, dsrlv_op, dsrav_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070054 mult_op, multu_op, div_op, divu_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080055 dmult_op, dmultu_op, ddiv_op, ddivu_op,
56 add_op, addu_op, sub_op, subu_op,
57 and_op, or_op, xor_op, nor_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070059 spec3_unused_op, spec4_unused_op, slt_op, sltu_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080060 dadd_op, daddu_op, dsub_op, dsubu_op,
61 tge_op, tgeu_op, tlt_op, tltu_op,
62 teq_op, spec5_unused_op, tne_op, spec6_unused_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070064 dsll_op, spec7_unused_op, dsrl_op, dsra_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080065 dsll32_op, spec8_unused_op, dsrl32_op, dsra32_op
66};
67enum spec2_op {
Elliott Hughesabd62612013-11-08 11:45:48 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070069 madd_op, maddu_op, mul_op, spec2_3_unused_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080070 msub_op, msubu_op,
71 clz_op = 0x20, clo_op,
72 dclz_op = 0x24, dclo_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070074 sdbpp_op = 0x3f
Elliott Hughesabd62612013-11-08 11:45:48 -080075};
76enum spec3_op {
77 ext_op, dextm_op, dextu_op, dext_op,
Elliott Hughesabd62612013-11-08 11:45:48 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070079 ins_op, dinsm_op, dinsu_op, dins_op,
80 yield_op = 0x09, lx_op = 0x0a,
81 lwle_op = 0x19, lwre_op = 0x1a,
82 cachee_op = 0x1b, sbe_op = 0x1c,
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 she_op = 0x1d, sce_op = 0x1e,
85 swe_op = 0x1f, bshfl_op = 0x20,
86 swle_op = 0x21, swre_op = 0x22,
87 prefe_op = 0x23, dbshfl_op = 0x24,
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 lbue_op = 0x28, lhue_op = 0x29,
90 lbe_op = 0x2c, lhe_op = 0x2d,
91 lle_op = 0x2e, lwe_op = 0x2f,
Elliott Hughesabd62612013-11-08 11:45:48 -080092 rdhwr_op = 0x3b
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94};
95enum rt_op {
96 bltz_op, bgez_op, bltzl_op, bgezl_op,
97 spimi_op, unused_rt_op_0x05, unused_rt_op_0x06, unused_rt_op_0x07,
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 tgei_op, tgeiu_op, tlti_op, tltiu_op,
100 teqi_op, unused_0x0d_rt_op, tnei_op, unused_0x0f_rt_op,
101 bltzal_op, bgezal_op, bltzall_op, bgezall_op,
102 rt_op_0x14, rt_op_0x15, rt_op_0x16, rt_op_0x17,
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 rt_op_0x18, rt_op_0x19, rt_op_0x1a, rt_op_0x1b,
105 bposge32_op, rt_op_0x1d, rt_op_0x1e, rt_op_0x1f
106};
107enum cop_op {
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 mfc_op = 0x00, dmfc_op = 0x01,
Christopher Ferris38062f92014-07-09 15:33:25 -0700110 cfc_op = 0x02, mfhc_op = 0x03,
111 mtc_op = 0x04, dmtc_op = 0x05,
112 ctc_op = 0x06, mthc_op = 0x07,
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 bc_op = 0x08, cop_op = 0x10,
Elliott Hughesabd62612013-11-08 11:45:48 -0800115 copm_op = 0x18
116};
117enum bcop_op {
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 bcf_op, bct_op, bcfl_op, bctl_op
Elliott Hughesabd62612013-11-08 11:45:48 -0800120};
121enum cop0_coi_func {
122 tlbr_op = 0x01, tlbwi_op = 0x02,
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 -0700124 tlbwr_op = 0x06, tlbp_op = 0x08,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700125 rfe_op = 0x10, eret_op = 0x18,
126 wait_op = 0x20,
Elliott Hughesabd62612013-11-08 11:45:48 -0800127};
Elliott Hughesabd62612013-11-08 11:45:48 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700129enum cop0_com_func {
Christopher Ferris38062f92014-07-09 15:33:25 -0700130 tlbr1_op = 0x01, tlbw_op = 0x02,
Elliott Hughesabd62612013-11-08 11:45:48 -0800131 tlbp1_op = 0x08, dctr_op = 0x09,
132 dctw_op = 0x0a
Elliott Hughesabd62612013-11-08 11:45:48 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700134};
Christopher Ferris38062f92014-07-09 15:33:25 -0700135enum cop1_fmt {
Elliott Hughesabd62612013-11-08 11:45:48 -0800136 s_fmt, d_fmt, e_fmt, q_fmt,
137 w_fmt, l_fmt
Elliott Hughesabd62612013-11-08 11:45:48 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700139};
Christopher Ferris38062f92014-07-09 15:33:25 -0700140enum cop1_sdw_func {
Elliott Hughesabd62612013-11-08 11:45:48 -0800141 fadd_op = 0x00, fsub_op = 0x01,
142 fmul_op = 0x02, fdiv_op = 0x03,
Elliott Hughesabd62612013-11-08 11:45:48 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700144 fsqrt_op = 0x04, fabs_op = 0x05,
Christopher Ferris38062f92014-07-09 15:33:25 -0700145 fmov_op = 0x06, fneg_op = 0x07,
Elliott Hughesabd62612013-11-08 11:45:48 -0800146 froundl_op = 0x08, ftruncl_op = 0x09,
147 fceill_op = 0x0a, ffloorl_op = 0x0b,
Elliott Hughesabd62612013-11-08 11:45:48 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700149 fround_op = 0x0c, ftrunc_op = 0x0d,
Christopher Ferris38062f92014-07-09 15:33:25 -0700150 fceil_op = 0x0e, ffloor_op = 0x0f,
Elliott Hughesabd62612013-11-08 11:45:48 -0800151 fmovc_op = 0x11, fmovz_op = 0x12,
152 fmovn_op = 0x13, frecip_op = 0x15,
Elliott Hughesabd62612013-11-08 11:45:48 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700154 frsqrt_op = 0x16, fcvts_op = 0x20,
Christopher Ferris38062f92014-07-09 15:33:25 -0700155 fcvtd_op = 0x21, fcvte_op = 0x22,
Elliott Hughesabd62612013-11-08 11:45:48 -0800156 fcvtw_op = 0x24, fcvtl_op = 0x25,
157 fcmp_op = 0x30
Christopher Ferris38062f92014-07-09 15:33:25 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700159};
Elliott Hughesabd62612013-11-08 11:45:48 -0800160enum cop1x_func {
Elliott Hughesabd62612013-11-08 11:45:48 -0800161 lwxc1_op = 0x00, ldxc1_op = 0x01,
Christopher Ferris38062f92014-07-09 15:33:25 -0700162 swxc1_op = 0x08, sdxc1_op = 0x09,
Elliott Hughesabd62612013-11-08 11:45:48 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700164 pfetch_op = 0x0f, madd_s_op = 0x20,
Christopher Ferris38062f92014-07-09 15:33:25 -0700165 madd_d_op = 0x21, madd_e_op = 0x22,
Elliott Hughesabd62612013-11-08 11:45:48 -0800166 msub_s_op = 0x28, msub_d_op = 0x29,
167 msub_e_op = 0x2a, nmadd_s_op = 0x30,
Elliott Hughesabd62612013-11-08 11:45:48 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700169 nmadd_d_op = 0x31, nmadd_e_op = 0x32,
Christopher Ferris38062f92014-07-09 15:33:25 -0700170 nmsub_s_op = 0x38, nmsub_d_op = 0x39,
Elliott Hughesabd62612013-11-08 11:45:48 -0800171 nmsub_e_op = 0x3a
172};
Elliott Hughesabd62612013-11-08 11:45:48 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700174enum mad_func {
Christopher Ferris38062f92014-07-09 15:33:25 -0700175 madd_fp_op = 0x08, msub_fp_op = 0x0a,
Elliott Hughesabd62612013-11-08 11:45:48 -0800176 nmadd_fp_op = 0x0c, nmsub_fp_op = 0x0e
177};
Elliott Hughesabd62612013-11-08 11:45:48 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700179enum lx_func {
Christopher Ferris38062f92014-07-09 15:33:25 -0700180 lwx_op = 0x00,
Elliott Hughesabd62612013-11-08 11:45:48 -0800181 lhx_op = 0x04,
182 lbux_op = 0x06,
Elliott Hughesabd62612013-11-08 11:45:48 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700184 ldx_op = 0x08,
Christopher Ferris38062f92014-07-09 15:33:25 -0700185 lwux_op = 0x10,
Elliott Hughesabd62612013-11-08 11:45:48 -0800186 lhux_op = 0x14,
187 lbx_op = 0x16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700189};
190enum bshfl_func {
191 wsbh_op = 0x2,
192 dshd_op = 0x5,
193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194 seb_op = 0x10,
195 seh_op = 0x18,
196};
Christopher Ferris38062f92014-07-09 15:33:25 -0700197enum mm_major_op {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800199 mm_pool32a_op, mm_pool16a_op, mm_lbu16_op, mm_move16_op,
200 mm_addi32_op, mm_lbu32_op, mm_sb32_op, mm_lb32_op,
201 mm_pool32b_op, mm_pool16b_op, mm_lhu16_op, mm_andi16_op,
Christopher Ferris38062f92014-07-09 15:33:25 -0700202 mm_addiu32_op, mm_lhu32_op, mm_sh32_op, mm_lh32_op,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800204 mm_pool32i_op, mm_pool16c_op, mm_lwsp16_op, mm_pool16d_op,
205 mm_ori32_op, mm_pool32f_op, mm_reserved1_op, mm_reserved2_op,
206 mm_pool32c_op, mm_lwgp16_op, mm_lw16_op, mm_pool16e_op,
Christopher Ferris38062f92014-07-09 15:33:25 -0700207 mm_xori32_op, mm_jals32_op, mm_addiupc_op, mm_reserved3_op,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800209 mm_reserved4_op, mm_pool16f_op, mm_sb16_op, mm_beqz16_op,
210 mm_slti32_op, mm_beq32_op, mm_swc132_op, mm_lwc132_op,
211 mm_reserved5_op, mm_reserved6_op, mm_sh16_op, mm_bnez16_op,
Christopher Ferris38062f92014-07-09 15:33:25 -0700212 mm_sltiu32_op, mm_bne32_op, mm_sdc132_op, mm_ldc132_op,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800214 mm_reserved7_op, mm_reserved8_op, mm_swsp16_op, mm_b16_op,
215 mm_andi32_op, mm_j32_op, mm_sd32_op, mm_ld32_op,
216 mm_reserved11_op, mm_reserved12_op, mm_sw16_op, mm_li16_op,
Christopher Ferris38062f92014-07-09 15:33:25 -0700217 mm_jalx32_op, mm_jal32_op, mm_sw32_op, mm_lw32_op,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800219};
220enum mm_32i_minor_op {
221 mm_bltz_op, mm_bltzal_op, mm_bgez_op, mm_bgezal_op,
Christopher Ferris38062f92014-07-09 15:33:25 -0700222 mm_blez_op, mm_bnezc_op, mm_bgtz_op, mm_beqzc_op,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800224 mm_tlti_op, mm_tgei_op, mm_tltiu_op, mm_tgeiu_op,
225 mm_tnei_op, mm_lui_op, mm_teqi_op, mm_reserved13_op,
226 mm_synci_op, mm_bltzals_op, mm_reserved14_op, mm_bgezals_op,
Christopher Ferris38062f92014-07-09 15:33:25 -0700227 mm_bc2f_op, mm_bc2t_op, mm_reserved15_op, mm_reserved16_op,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800229 mm_reserved17_op, mm_reserved18_op, mm_bposge64_op, mm_bposge32_op,
230 mm_bc1f_op, mm_bc1t_op, mm_reserved19_op, mm_reserved20_op,
231 mm_bc1any2f_op, mm_bc1any2t_op, mm_bc1any4f_op, mm_bc1any4t_op,
Christopher Ferris38062f92014-07-09 15:33:25 -0700232};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800234enum mm_32a_minor_op {
235 mm_sll32_op = 0x000,
236 mm_ins_op = 0x00c,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700237 mm_sllv32_op = 0x010,
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_ext_op = 0x02c,
Elliott Hughesabd62612013-11-08 11:45:48 -0800240 mm_pool32axf_op = 0x03c,
241 mm_srl32_op = 0x040,
242 mm_sra_op = 0x080,
Elliott Hughesabd62612013-11-08 11:45:48 -0800243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700244 mm_srlv32_op = 0x090,
Christopher Ferris38062f92014-07-09 15:33:25 -0700245 mm_rotr_op = 0x0c0,
Elliott Hughesabd62612013-11-08 11:45:48 -0800246 mm_lwxs_op = 0x118,
247 mm_addu32_op = 0x150,
Elliott Hughesabd62612013-11-08 11:45:48 -0800248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700249 mm_subu32_op = 0x1d0,
250 mm_wsbh_op = 0x1ec,
251 mm_mul_op = 0x210,
Christopher Ferris38062f92014-07-09 15:33:25 -0700252 mm_and_op = 0x250,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800254 mm_or32_op = 0x290,
255 mm_xor32_op = 0x310,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700256 mm_slt_op = 0x350,
257 mm_sltu_op = 0x390,
Elliott Hughesabd62612013-11-08 11:45:48 -0800258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700259};
Christopher Ferris38062f92014-07-09 15:33:25 -0700260enum mm_32b_func {
Elliott Hughesabd62612013-11-08 11:45:48 -0800261 mm_lwc2_func = 0x0,
262 mm_lwp_func = 0x1,
Elliott Hughesabd62612013-11-08 11:45:48 -0800263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700264 mm_ldc2_func = 0x2,
Christopher Ferris38062f92014-07-09 15:33:25 -0700265 mm_ldp_func = 0x4,
Elliott Hughesabd62612013-11-08 11:45:48 -0800266 mm_lwm32_func = 0x5,
267 mm_cache_func = 0x6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700269 mm_ldm_func = 0x7,
Christopher Ferris38062f92014-07-09 15:33:25 -0700270 mm_swc2_func = 0x8,
Elliott Hughesabd62612013-11-08 11:45:48 -0800271 mm_swp_func = 0x9,
272 mm_sdc2_func = 0xa,
Elliott Hughesabd62612013-11-08 11:45:48 -0800273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700274 mm_sdp_func = 0xc,
Christopher Ferris38062f92014-07-09 15:33:25 -0700275 mm_swm32_func = 0xd,
Elliott Hughesabd62612013-11-08 11:45:48 -0800276 mm_sdm_func = 0xf,
277};
Elliott Hughesabd62612013-11-08 11:45:48 -0800278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700279enum mm_32c_func {
Christopher Ferris38062f92014-07-09 15:33:25 -0700280 mm_pref_func = 0x2,
Elliott Hughesabd62612013-11-08 11:45:48 -0800281 mm_ll_func = 0x3,
282 mm_swr_func = 0x9,
Elliott Hughesabd62612013-11-08 11:45:48 -0800283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700284 mm_sc_func = 0xb,
Christopher Ferris38062f92014-07-09 15:33:25 -0700285 mm_lwu_func = 0xe,
Elliott Hughesabd62612013-11-08 11:45:48 -0800286};
287enum mm_32axf_minor_op {
Elliott Hughesabd62612013-11-08 11:45:48 -0800288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700289 mm_mfc0_op = 0x003,
Christopher Ferris38062f92014-07-09 15:33:25 -0700290 mm_mtc0_op = 0x00b,
Elliott Hughesabd62612013-11-08 11:45:48 -0800291 mm_tlbp_op = 0x00d,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700292 mm_mfhi32_op = 0x035,
293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800294 mm_jalr_op = 0x03c,
295 mm_tlbr_op = 0x04d,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700296 mm_mflo32_op = 0x075,
Christopher Ferris38062f92014-07-09 15:33:25 -0700297 mm_jalrhb_op = 0x07c,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800299 mm_tlbwi_op = 0x08d,
300 mm_tlbwr_op = 0x0cd,
301 mm_jalrs_op = 0x13c,
Christopher Ferris38062f92014-07-09 15:33:25 -0700302 mm_jalrshb_op = 0x17c,
Elliott Hughesabd62612013-11-08 11:45:48 -0800303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700304 mm_sync_op = 0x1ad,
305 mm_syscall_op = 0x22d,
306 mm_wait_op = 0x24d,
307 mm_eret_op = 0x3cd,
308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
309 mm_divu_op = 0x5dc,
310};
Christopher Ferris38062f92014-07-09 15:33:25 -0700311enum mm_32f_minor_op {
Elliott Hughesabd62612013-11-08 11:45:48 -0800312 mm_32f_00_op = 0x00,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800314 mm_32f_01_op = 0x01,
315 mm_32f_02_op = 0x02,
Christopher Ferris38062f92014-07-09 15:33:25 -0700316 mm_32f_10_op = 0x08,
Elliott Hughesabd62612013-11-08 11:45:48 -0800317 mm_32f_11_op = 0x09,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800319 mm_32f_12_op = 0x0a,
320 mm_32f_20_op = 0x10,
Christopher Ferris38062f92014-07-09 15:33:25 -0700321 mm_32f_30_op = 0x18,
Elliott Hughesabd62612013-11-08 11:45:48 -0800322 mm_32f_40_op = 0x20,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800324 mm_32f_41_op = 0x21,
325 mm_32f_42_op = 0x22,
Christopher Ferris38062f92014-07-09 15:33:25 -0700326 mm_32f_50_op = 0x28,
Elliott Hughesabd62612013-11-08 11:45:48 -0800327 mm_32f_51_op = 0x29,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800329 mm_32f_52_op = 0x2a,
330 mm_32f_60_op = 0x30,
Christopher Ferris38062f92014-07-09 15:33:25 -0700331 mm_32f_70_op = 0x38,
Elliott Hughesabd62612013-11-08 11:45:48 -0800332 mm_32f_73_op = 0x3b,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800334 mm_32f_74_op = 0x3c,
335};
Christopher Ferris38062f92014-07-09 15:33:25 -0700336enum mm_32f_10_minor_op {
Elliott Hughesabd62612013-11-08 11:45:48 -0800337 mm_lwxc1_op = 0x1,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800339 mm_swxc1_op,
340 mm_ldxc1_op,
Christopher Ferris38062f92014-07-09 15:33:25 -0700341 mm_sdxc1_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800342 mm_luxc1_op,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800344 mm_suxc1_op,
345};
Christopher Ferris38062f92014-07-09 15:33:25 -0700346enum mm_32f_func {
Elliott Hughesabd62612013-11-08 11:45:48 -0800347 mm_lwxc1_func = 0x048,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800349 mm_swxc1_func = 0x088,
350 mm_ldxc1_func = 0x0c8,
Christopher Ferris38062f92014-07-09 15:33:25 -0700351 mm_sdxc1_func = 0x108,
Elliott Hughesabd62612013-11-08 11:45:48 -0800352};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800354enum mm_32f_40_minor_op {
355 mm_fmovf_op,
Christopher Ferris38062f92014-07-09 15:33:25 -0700356 mm_fmovt_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800357};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800359enum mm_32f_60_minor_op {
360 mm_fadd_op,
Christopher Ferris38062f92014-07-09 15:33:25 -0700361 mm_fsub_op,
Elliott Hughesabd62612013-11-08 11:45:48 -0800362 mm_fmul_op,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800364 mm_fdiv_op,
365};
Christopher Ferris38062f92014-07-09 15:33:25 -0700366enum mm_32f_70_minor_op {
Elliott Hughesabd62612013-11-08 11:45:48 -0800367 mm_fmovn_op,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800369 mm_fmovz_op,
370};
Christopher Ferris38062f92014-07-09 15:33:25 -0700371enum mm_32f_73_minor_op {
Elliott Hughesabd62612013-11-08 11:45:48 -0800372 mm_fmov0_op = 0x01,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800374 mm_fcvtl_op = 0x04,
375 mm_movf0_op = 0x05,
Christopher Ferris38062f92014-07-09 15:33:25 -0700376 mm_frsqrt_op = 0x08,
Elliott Hughesabd62612013-11-08 11:45:48 -0800377 mm_ffloorl_op = 0x0c,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800379 mm_fabs0_op = 0x0d,
380 mm_fcvtw_op = 0x24,
Christopher Ferris38062f92014-07-09 15:33:25 -0700381 mm_movt0_op = 0x25,
Elliott Hughesabd62612013-11-08 11:45:48 -0800382 mm_fsqrt_op = 0x28,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800384 mm_ffloorw_op = 0x2c,
385 mm_fneg0_op = 0x2d,
Christopher Ferris38062f92014-07-09 15:33:25 -0700386 mm_cfc1_op = 0x40,
Elliott Hughesabd62612013-11-08 11:45:48 -0800387 mm_frecip_op = 0x48,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800389 mm_fceill_op = 0x4c,
390 mm_fcvtd0_op = 0x4d,
Christopher Ferris38062f92014-07-09 15:33:25 -0700391 mm_ctc1_op = 0x60,
Elliott Hughesabd62612013-11-08 11:45:48 -0800392 mm_fceilw_op = 0x6c,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800394 mm_fcvts0_op = 0x6d,
395 mm_mfc1_op = 0x80,
Christopher Ferris38062f92014-07-09 15:33:25 -0700396 mm_fmov1_op = 0x81,
Elliott Hughesabd62612013-11-08 11:45:48 -0800397 mm_movf1_op = 0x85,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800399 mm_ftruncl_op = 0x8c,
400 mm_fabs1_op = 0x8d,
Christopher Ferris38062f92014-07-09 15:33:25 -0700401 mm_mtc1_op = 0xa0,
Elliott Hughesabd62612013-11-08 11:45:48 -0800402 mm_movt1_op = 0xa5,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800404 mm_ftruncw_op = 0xac,
405 mm_fneg1_op = 0xad,
Christopher Ferris38062f92014-07-09 15:33:25 -0700406 mm_mfhc1_op = 0xc0,
407 mm_froundl_op = 0xcc,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800409 mm_fcvtd1_op = 0xcd,
Christopher Ferris38062f92014-07-09 15:33:25 -0700410 mm_mthc1_op = 0xe0,
Elliott Hughesabd62612013-11-08 11:45:48 -0800411 mm_froundw_op = 0xec,
412 mm_fcvts1_op = 0xed,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800414};
Elliott Hughesabd62612013-11-08 11:45:48 -0800415enum mm_16c_minor_op {
416 mm_lwm16_op = 0x04,
417 mm_swm16_op = 0x05,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700419 mm_jr16_op = 0x0c,
420 mm_jrc_op = 0x0d,
Christopher Ferris38062f92014-07-09 15:33:25 -0700421 mm_jalr16_op = 0x0e,
422 mm_jalrs16_op = 0x0f,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700424 mm_jraddiusp_op = 0x18,
Elliott Hughesabd62612013-11-08 11:45:48 -0800425};
426enum mm_16d_minor_op {
427 mm_addius5_func,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800429 mm_addiusp_func,
Elliott Hughesabd62612013-11-08 11:45:48 -0800430};
431enum MIPS16e_ops {
432 MIPS16e_jal_op = 003,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800434 MIPS16e_ld_op = 007,
Elliott Hughesabd62612013-11-08 11:45:48 -0800435 MIPS16e_i8_op = 014,
436 MIPS16e_sd_op = 017,
437 MIPS16e_lb_op = 020,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800439 MIPS16e_lh_op = 021,
Elliott Hughesabd62612013-11-08 11:45:48 -0800440 MIPS16e_lwsp_op = 022,
441 MIPS16e_lw_op = 023,
442 MIPS16e_lbu_op = 024,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800444 MIPS16e_lhu_op = 025,
Elliott Hughesabd62612013-11-08 11:45:48 -0800445 MIPS16e_lwpc_op = 026,
446 MIPS16e_lwu_op = 027,
447 MIPS16e_sb_op = 030,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800449 MIPS16e_sh_op = 031,
Elliott Hughesabd62612013-11-08 11:45:48 -0800450 MIPS16e_swsp_op = 032,
451 MIPS16e_sw_op = 033,
452 MIPS16e_rr_op = 035,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800454 MIPS16e_extend_op = 036,
Elliott Hughesabd62612013-11-08 11:45:48 -0800455 MIPS16e_i64_op = 037,
456};
457enum MIPS16e_i64_func {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800459 MIPS16e_ldsp_func,
Elliott Hughesabd62612013-11-08 11:45:48 -0800460 MIPS16e_sdsp_func,
461 MIPS16e_sdrasp_func,
462 MIPS16e_dadjsp_func,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800464 MIPS16e_ldpc_func,
Elliott Hughesabd62612013-11-08 11:45:48 -0800465};
466enum MIPS16e_rr_func {
467 MIPS16e_jr_func,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800469};
Elliott Hughesabd62612013-11-08 11:45:48 -0800470enum MIPS6e_i8_func {
471 MIPS16e_swrasp_func = 02,
472};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800474#define MM_NOP16 0x0c00
Elliott Hughesabd62612013-11-08 11:45:48 -0800475struct j_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700476 __BITFIELD_FIELD(unsigned int opcode : 6,
477 __BITFIELD_FIELD(unsigned int target : 26,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700479 ;))
Elliott Hughesabd62612013-11-08 11:45:48 -0800480};
Elliott Hughesabd62612013-11-08 11:45:48 -0800481struct i_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700482 __BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700484 __BITFIELD_FIELD(unsigned int rs : 5,
485 __BITFIELD_FIELD(unsigned int rt : 5,
486 __BITFIELD_FIELD(signed int simmediate : 16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800487 ;))))
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700489};
Elliott Hughesabd62612013-11-08 11:45:48 -0800490struct u_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700491 __BITFIELD_FIELD(unsigned int opcode : 6,
492 __BITFIELD_FIELD(unsigned int rs : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700494 __BITFIELD_FIELD(unsigned int rt : 5,
495 __BITFIELD_FIELD(unsigned int uimmediate : 16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800496 ;))))
497};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800499struct c_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700500 __BITFIELD_FIELD(unsigned int opcode : 6,
501 __BITFIELD_FIELD(unsigned int rs : 5,
502 __BITFIELD_FIELD(unsigned int c_op : 3,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700504 __BITFIELD_FIELD(unsigned int cache : 2,
505 __BITFIELD_FIELD(unsigned int simmediate : 16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800506 ;)))))
507};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800509struct r_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700510 __BITFIELD_FIELD(unsigned int opcode : 6,
511 __BITFIELD_FIELD(unsigned int rs : 5,
512 __BITFIELD_FIELD(unsigned int rt : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700514 __BITFIELD_FIELD(unsigned int rd : 5,
515 __BITFIELD_FIELD(unsigned int re : 5,
516 __BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800517 ;))))))
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800519};
520struct p_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700521 __BITFIELD_FIELD(unsigned int opcode : 6,
522 __BITFIELD_FIELD(unsigned int rs : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700524 __BITFIELD_FIELD(unsigned int rt : 5,
525 __BITFIELD_FIELD(unsigned int rd : 5,
526 __BITFIELD_FIELD(unsigned int re : 5,
527 __BITFIELD_FIELD(unsigned int func : 6,
528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800529 ;))))))
530};
Elliott Hughesabd62612013-11-08 11:45:48 -0800531struct f_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700532 __BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700534 __BITFIELD_FIELD(unsigned int : 1,
535 __BITFIELD_FIELD(unsigned int fmt : 4,
536 __BITFIELD_FIELD(unsigned int rt : 5,
537 __BITFIELD_FIELD(unsigned int rd : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700539 __BITFIELD_FIELD(unsigned int re : 5,
540 __BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800541 ;)))))))
542};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800544struct ma_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700545 __BITFIELD_FIELD(unsigned int opcode : 6,
546 __BITFIELD_FIELD(unsigned int fr : 5,
547 __BITFIELD_FIELD(unsigned int ft : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700549 __BITFIELD_FIELD(unsigned int fs : 5,
550 __BITFIELD_FIELD(unsigned int fd : 5,
551 __BITFIELD_FIELD(unsigned int func : 4,
552 __BITFIELD_FIELD(unsigned int fmt : 2,
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 ;)))))))
555};
Elliott Hughesabd62612013-11-08 11:45:48 -0800556struct b_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700557 __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 */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700559 __BITFIELD_FIELD(unsigned int code : 20,
560 __BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800561 ;)))
562};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800564struct ps_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700565 __BITFIELD_FIELD(unsigned int opcode : 6,
566 __BITFIELD_FIELD(unsigned int rs : 5,
567 __BITFIELD_FIELD(unsigned int ft : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700569 __BITFIELD_FIELD(unsigned int fs : 5,
570 __BITFIELD_FIELD(unsigned int fd : 5,
571 __BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800572 ;))))))
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800574};
575struct v_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700576 __BITFIELD_FIELD(unsigned int opcode : 6,
577 __BITFIELD_FIELD(unsigned int sel : 4,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700579 __BITFIELD_FIELD(unsigned int fmt : 1,
580 __BITFIELD_FIELD(unsigned int vt : 5,
581 __BITFIELD_FIELD(unsigned int vs : 5,
582 __BITFIELD_FIELD(unsigned int vd : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700584 __BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800585 ;)))))))
Elliott Hughesabd62612013-11-08 11:45:48 -0800586};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700587struct spec3_format {
588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
589 __BITFIELD_FIELD(unsigned int opcode:6,
590 __BITFIELD_FIELD(unsigned int rs:5,
591 __BITFIELD_FIELD(unsigned int rt:5,
592 __BITFIELD_FIELD(signed int simmediate:9,
593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
594 __BITFIELD_FIELD(unsigned int func:7,
595 ;)))))
596};
Elliott Hughesabd62612013-11-08 11:45:48 -0800597struct fb_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700599 __BITFIELD_FIELD(unsigned int opcode : 6,
600 __BITFIELD_FIELD(unsigned int bc : 5,
601 __BITFIELD_FIELD(unsigned int cc : 3,
602 __BITFIELD_FIELD(unsigned int flag : 2,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700604 __BITFIELD_FIELD(signed int simmediate : 16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800605 ;)))))
Elliott Hughesabd62612013-11-08 11:45:48 -0800606};
607struct fp0_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700609 __BITFIELD_FIELD(unsigned int opcode : 6,
610 __BITFIELD_FIELD(unsigned int fmt : 5,
611 __BITFIELD_FIELD(unsigned int ft : 5,
612 __BITFIELD_FIELD(unsigned int fs : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700614 __BITFIELD_FIELD(unsigned int fd : 5,
615 __BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800616 ;))))))
617};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800619struct mm_fp0_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700620 __BITFIELD_FIELD(unsigned int opcode : 6,
621 __BITFIELD_FIELD(unsigned int ft : 5,
622 __BITFIELD_FIELD(unsigned int fs : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700624 __BITFIELD_FIELD(unsigned int fd : 5,
625 __BITFIELD_FIELD(unsigned int fmt : 3,
626 __BITFIELD_FIELD(unsigned int op : 2,
627 __BITFIELD_FIELD(unsigned int func : 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 ;)))))))
630};
Elliott Hughesabd62612013-11-08 11:45:48 -0800631struct fp1_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700632 __BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700634 __BITFIELD_FIELD(unsigned int op : 5,
635 __BITFIELD_FIELD(unsigned int rt : 5,
636 __BITFIELD_FIELD(unsigned int fs : 5,
637 __BITFIELD_FIELD(unsigned int fd : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700639 __BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800640 ;))))))
Elliott Hughesabd62612013-11-08 11:45:48 -0800641};
642struct mm_fp1_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700644 __BITFIELD_FIELD(unsigned int opcode : 6,
645 __BITFIELD_FIELD(unsigned int rt : 5,
646 __BITFIELD_FIELD(unsigned int fs : 5,
647 __BITFIELD_FIELD(unsigned int fmt : 2,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700649 __BITFIELD_FIELD(unsigned int op : 8,
650 __BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800651 ;))))))
652};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800654struct mm_fp2_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700655 __BITFIELD_FIELD(unsigned int opcode : 6,
656 __BITFIELD_FIELD(unsigned int fd : 5,
657 __BITFIELD_FIELD(unsigned int fs : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700659 __BITFIELD_FIELD(unsigned int cc : 3,
660 __BITFIELD_FIELD(unsigned int zero : 2,
661 __BITFIELD_FIELD(unsigned int fmt : 2,
662 __BITFIELD_FIELD(unsigned int op : 3,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700664 __BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800665 ;))))))))
Elliott Hughesabd62612013-11-08 11:45:48 -0800666};
667struct mm_fp3_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700669 __BITFIELD_FIELD(unsigned int opcode : 6,
670 __BITFIELD_FIELD(unsigned int rt : 5,
671 __BITFIELD_FIELD(unsigned int fs : 5,
672 __BITFIELD_FIELD(unsigned int fmt : 3,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700674 __BITFIELD_FIELD(unsigned int op : 7,
675 __BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800676 ;))))))
677};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800679struct mm_fp4_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700680 __BITFIELD_FIELD(unsigned int opcode : 6,
681 __BITFIELD_FIELD(unsigned int rt : 5,
682 __BITFIELD_FIELD(unsigned int fs : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700684 __BITFIELD_FIELD(unsigned int cc : 3,
685 __BITFIELD_FIELD(unsigned int fmt : 3,
686 __BITFIELD_FIELD(unsigned int cond : 4,
687 __BITFIELD_FIELD(unsigned int func : 6,
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 ;)))))))
690};
Elliott Hughesabd62612013-11-08 11:45:48 -0800691struct mm_fp5_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700692 __BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700694 __BITFIELD_FIELD(unsigned int index : 5,
695 __BITFIELD_FIELD(unsigned int base : 5,
696 __BITFIELD_FIELD(unsigned int fd : 5,
697 __BITFIELD_FIELD(unsigned int op : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700699 __BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800700 ;))))))
Elliott Hughesabd62612013-11-08 11:45:48 -0800701};
702struct fp6_format {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700704 __BITFIELD_FIELD(unsigned int opcode : 6,
705 __BITFIELD_FIELD(unsigned int fr : 5,
706 __BITFIELD_FIELD(unsigned int ft : 5,
707 __BITFIELD_FIELD(unsigned int fs : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700709 __BITFIELD_FIELD(unsigned int fd : 5,
710 __BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800711 ;))))))
712};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800714struct mm_fp6_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700715 __BITFIELD_FIELD(unsigned int opcode : 6,
716 __BITFIELD_FIELD(unsigned int ft : 5,
717 __BITFIELD_FIELD(unsigned int fs : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700719 __BITFIELD_FIELD(unsigned int fd : 5,
720 __BITFIELD_FIELD(unsigned int fr : 5,
721 __BITFIELD_FIELD(unsigned int func : 6,
Elliott Hughesabd62612013-11-08 11:45:48 -0800722 ;))))))
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800724};
725struct mm_i_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700726 __BITFIELD_FIELD(unsigned int opcode : 6,
727 __BITFIELD_FIELD(unsigned int rt : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700729 __BITFIELD_FIELD(unsigned int rs : 5,
730 __BITFIELD_FIELD(signed int simmediate : 16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800731 ;))))
732};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800734struct mm_m_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700735 __BITFIELD_FIELD(unsigned int opcode : 6,
736 __BITFIELD_FIELD(unsigned int rd : 5,
737 __BITFIELD_FIELD(unsigned int base : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700739 __BITFIELD_FIELD(unsigned int func : 4,
740 __BITFIELD_FIELD(signed int simmediate : 12,
Elliott Hughesabd62612013-11-08 11:45:48 -0800741 ;)))))
742};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800744struct mm_x_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700745 __BITFIELD_FIELD(unsigned int opcode : 6,
746 __BITFIELD_FIELD(unsigned int index : 5,
747 __BITFIELD_FIELD(unsigned int base : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700749 __BITFIELD_FIELD(unsigned int rd : 5,
750 __BITFIELD_FIELD(unsigned int func : 11,
Elliott Hughesabd62612013-11-08 11:45:48 -0800751 ;)))))
752};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800754struct mm_b0_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700755 __BITFIELD_FIELD(unsigned int opcode : 6,
756 __BITFIELD_FIELD(signed int simmediate : 10,
757 __BITFIELD_FIELD(unsigned int : 16,
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 ;)))
760};
Elliott Hughesabd62612013-11-08 11:45:48 -0800761struct mm_b1_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700762 __BITFIELD_FIELD(unsigned int opcode : 6,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700764 __BITFIELD_FIELD(unsigned int rs : 3,
765 __BITFIELD_FIELD(signed int simmediate : 7,
766 __BITFIELD_FIELD(unsigned int : 16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800767 ;))))
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700769};
Elliott Hughesabd62612013-11-08 11:45:48 -0800770struct mm16_m_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700771 __BITFIELD_FIELD(unsigned int opcode : 6,
772 __BITFIELD_FIELD(unsigned int func : 4,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700774 __BITFIELD_FIELD(unsigned int rlist : 2,
775 __BITFIELD_FIELD(unsigned int imm : 4,
776 __BITFIELD_FIELD(unsigned int : 16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800777 ;)))))
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700779};
Elliott Hughesabd62612013-11-08 11:45:48 -0800780struct mm16_rb_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700781 __BITFIELD_FIELD(unsigned int opcode : 6,
782 __BITFIELD_FIELD(unsigned int rt : 3,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700783/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700784 __BITFIELD_FIELD(unsigned int base : 3,
785 __BITFIELD_FIELD(signed int simmediate : 4,
786 __BITFIELD_FIELD(unsigned int : 16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800787 ;)))))
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800789};
790struct mm16_r3_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700791 __BITFIELD_FIELD(unsigned int opcode : 6,
792 __BITFIELD_FIELD(unsigned int rt : 3,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700793/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700794 __BITFIELD_FIELD(signed int simmediate : 7,
795 __BITFIELD_FIELD(unsigned int : 16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800796 ;))))
797};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700798/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800799struct mm16_r5_format {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700800 __BITFIELD_FIELD(unsigned int opcode : 6,
801 __BITFIELD_FIELD(unsigned int rt : 5,
802 __BITFIELD_FIELD(signed int simmediate : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700803/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700804 __BITFIELD_FIELD(unsigned int : 16,
Elliott Hughesabd62612013-11-08 11:45:48 -0800805 ;))))
Elliott Hughesabd62612013-11-08 11:45:48 -0800806};
807struct m16e_rr {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700808/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700809 __BITFIELD_FIELD(unsigned int opcode : 5,
810 __BITFIELD_FIELD(unsigned int rx : 3,
811 __BITFIELD_FIELD(unsigned int nd : 1,
812 __BITFIELD_FIELD(unsigned int l : 1,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700813/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700814 __BITFIELD_FIELD(unsigned int ra : 1,
815 __BITFIELD_FIELD(unsigned int func : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800816 ;))))))
817};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700818/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800819struct m16e_jal {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700820 __BITFIELD_FIELD(unsigned int opcode : 5,
821 __BITFIELD_FIELD(unsigned int x : 1,
822 __BITFIELD_FIELD(unsigned int imm20_16 : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700823/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700824 __BITFIELD_FIELD(signed int imm25_21 : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800825 ;))))
Elliott Hughesabd62612013-11-08 11:45:48 -0800826};
827struct m16e_i64 {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700828/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700829 __BITFIELD_FIELD(unsigned int opcode : 5,
830 __BITFIELD_FIELD(unsigned int func : 3,
831 __BITFIELD_FIELD(unsigned int imm : 8,
Elliott Hughesabd62612013-11-08 11:45:48 -0800832 ;)))
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700833/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800834};
835struct m16e_ri64 {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700836 __BITFIELD_FIELD(unsigned int opcode : 5,
837 __BITFIELD_FIELD(unsigned int func : 3,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700838/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700839 __BITFIELD_FIELD(unsigned int ry : 3,
840 __BITFIELD_FIELD(unsigned int imm : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800841 ;))))
842};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700843/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800844struct m16e_ri {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700845 __BITFIELD_FIELD(unsigned int opcode : 5,
846 __BITFIELD_FIELD(unsigned int rx : 3,
847 __BITFIELD_FIELD(unsigned int imm : 8,
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 ;)))
850};
Elliott Hughesabd62612013-11-08 11:45:48 -0800851struct m16e_rri {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700852 __BITFIELD_FIELD(unsigned int opcode : 5,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700853/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700854 __BITFIELD_FIELD(unsigned int rx : 3,
855 __BITFIELD_FIELD(unsigned int ry : 3,
856 __BITFIELD_FIELD(unsigned int imm : 5,
Elliott Hughesabd62612013-11-08 11:45:48 -0800857 ;))))
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700858/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800859};
860struct m16e_i8 {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700861 __BITFIELD_FIELD(unsigned int opcode : 5,
862 __BITFIELD_FIELD(unsigned int func : 3,
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700863/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700864 __BITFIELD_FIELD(unsigned int imm : 8,
Elliott Hughesabd62612013-11-08 11:45:48 -0800865 ;)))
Elliott Hughesabd62612013-11-08 11:45:48 -0800866};
867union mips_instruction {
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700868/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700869 unsigned int word;
Elliott Hughesabd62612013-11-08 11:45:48 -0800870 unsigned short halfword[2];
Elliott Hughesabd62612013-11-08 11:45:48 -0800871 unsigned char byte[4];
872 struct j_format j_format;
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700873/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700874 struct i_format i_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800875 struct u_format u_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800876 struct c_format c_format;
877 struct r_format r_format;
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700878/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700879 struct p_format p_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800880 struct f_format f_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800881 struct ma_format ma_format;
882 struct b_format b_format;
Elliott Hughes8ed7a232014-05-15 12:01:11 -0700883/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700884 struct ps_format ps_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800885 struct v_format v_format;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700886 struct spec3_format spec3_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800887 struct fb_format fb_format;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700888/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800889 struct fp0_format fp0_format;
890 struct mm_fp0_format mm_fp0_format;
891 struct fp1_format fp1_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800892 struct mm_fp1_format mm_fp1_format;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700893/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800894 struct mm_fp2_format mm_fp2_format;
895 struct mm_fp3_format mm_fp3_format;
896 struct mm_fp4_format mm_fp4_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800897 struct mm_fp5_format mm_fp5_format;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700898/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800899 struct fp6_format fp6_format;
900 struct mm_fp6_format mm_fp6_format;
901 struct mm_i_format mm_i_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800902 struct mm_m_format mm_m_format;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700903/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800904 struct mm_x_format mm_x_format;
905 struct mm_b0_format mm_b0_format;
906 struct mm_b1_format mm_b1_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800907 struct mm16_m_format mm16_m_format ;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700908/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800909 struct mm16_rb_format mm16_rb_format;
910 struct mm16_r3_format mm16_r3_format;
911 struct mm16_r5_format mm16_r5_format;
Elliott Hughesabd62612013-11-08 11:45:48 -0800912};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700913/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800914union mips16e_instruction {
915 unsigned int full : 16;
916 struct m16e_rr rr;
Elliott Hughesabd62612013-11-08 11:45:48 -0800917 struct m16e_jal jal;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700918/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800919 struct m16e_i64 i64;
920 struct m16e_ri64 ri64;
921 struct m16e_ri ri;
Elliott Hughesabd62612013-11-08 11:45:48 -0800922 struct m16e_rri rri;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700923/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -0800924 struct m16e_i8 i8;
925};
926#endif