#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/init.h>
#include <asm/inst.h>
#include <asm/elf.h>
#include <asm/bugs.h>
#include <asm/uasm.h>
Go to the source code of this file.
|
enum | fields {
RS = 0x001,
RT = 0x002,
RD = 0x004,
RE = 0x008,
SIMM = 0x010,
UIMM = 0x020,
BIMM = 0x040,
JIMM = 0x080,
FUNC = 0x100,
SET = 0x200,
SCIMM = 0x400
} |
|
enum | opcode {
insn_invalid,
insn_addiu,
insn_addu,
insn_and,
insn_andi,
insn_bbit0,
insn_bbit1,
insn_beq,
insn_beql,
insn_bgez,
insn_bgezl,
insn_bltz,
insn_bltzl,
insn_bne,
insn_cache,
insn_daddiu,
insn_daddu,
insn_dins,
insn_dinsm,
insn_dmfc0,
insn_dmtc0,
insn_drotr,
insn_drotr32,
insn_dsll,
insn_dsll32,
insn_dsra,
insn_dsrl,
insn_dsrl32,
insn_dsubu,
insn_eret,
insn_ext,
insn_ins,
insn_j,
insn_jal,
insn_jr,
insn_ld,
insn_ldx,
insn_ll,
insn_lld,
insn_lui,
insn_lw,
insn_lwx,
insn_mfc0,
insn_mtc0,
insn_or,
insn_ori,
insn_pref,
insn_rfe,
insn_rotr,
insn_sc,
insn_scd,
insn_sd,
insn_sll,
insn_sra,
insn_srl,
insn_subu,
insn_sw,
insn_syscall,
insn_tlbp,
insn_tlbr,
insn_tlbwi,
insn_tlbwr,
insn_xor,
insn_xori
} |
|
|
| I_u2u1s3 (_addiu) |
|
| UASM_EXPORT_SYMBOL (uasm_build_label) |
|
int __uasminit | uasm_in_compat_space_p (long addr) |
|
| UASM_EXPORT_SYMBOL (uasm_in_compat_space_p) |
|
int __uasminit | uasm_rel_hi (long val) |
|
| UASM_EXPORT_SYMBOL (uasm_rel_hi) |
|
int __uasminit | uasm_rel_lo (long val) |
|
| UASM_EXPORT_SYMBOL (uasm_rel_lo) |
|
void __uasminit | UASM_i_LA_mostly (u32 **buf, unsigned int rs, long addr) |
|
| UASM_EXPORT_SYMBOL (UASM_i_LA_mostly) |
|
void __uasminit | UASM_i_LA (u32 **buf, unsigned int rs, long addr) |
|
| UASM_EXPORT_SYMBOL (UASM_i_LA) |
|
void __uasminit | uasm_r_mips_pc16 (struct uasm_reloc **rel, u32 *addr, int lid) |
|
| UASM_EXPORT_SYMBOL (uasm_r_mips_pc16) |
|
void __uasminit | uasm_resolve_relocs (struct uasm_reloc *rel, struct uasm_label *lab) |
|
| UASM_EXPORT_SYMBOL (uasm_resolve_relocs) |
|
void __uasminit | uasm_move_relocs (struct uasm_reloc *rel, u32 *first, u32 *end, long off) |
|
| UASM_EXPORT_SYMBOL (uasm_move_relocs) |
|
void __uasminit | uasm_move_labels (struct uasm_label *lab, u32 *first, u32 *end, long off) |
|
| UASM_EXPORT_SYMBOL (uasm_move_labels) |
|
void __uasminit | uasm_copy_handler (struct uasm_reloc *rel, struct uasm_label *lab, u32 *first, u32 *end, u32 *target) |
|
| UASM_EXPORT_SYMBOL (uasm_copy_handler) |
|
int __uasminit | uasm_insn_has_bdelay (struct uasm_reloc *rel, u32 *addr) |
|
| UASM_EXPORT_SYMBOL (uasm_insn_has_bdelay) |
|
void __uasminit | uasm_il_bltz (u32 **p, struct uasm_reloc **r, unsigned int reg, int lid) |
|
| UASM_EXPORT_SYMBOL (uasm_il_bltz) |
|
void __uasminit | uasm_il_b (u32 **p, struct uasm_reloc **r, int lid) |
|
| UASM_EXPORT_SYMBOL (uasm_il_b) |
|
void __uasminit | uasm_il_beqz (u32 **p, struct uasm_reloc **r, unsigned int reg, int lid) |
|
| UASM_EXPORT_SYMBOL (uasm_il_beqz) |
|
void __uasminit | uasm_il_beqzl (u32 **p, struct uasm_reloc **r, unsigned int reg, int lid) |
|
| UASM_EXPORT_SYMBOL (uasm_il_beqzl) |
|
void __uasminit | uasm_il_bne (u32 **p, struct uasm_reloc **r, unsigned int reg1, unsigned int reg2, int lid) |
|
| UASM_EXPORT_SYMBOL (uasm_il_bne) |
|
void __uasminit | uasm_il_bnez (u32 **p, struct uasm_reloc **r, unsigned int reg, int lid) |
|
| UASM_EXPORT_SYMBOL (uasm_il_bnez) |
|
void __uasminit | uasm_il_bgezl (u32 **p, struct uasm_reloc **r, unsigned int reg, int lid) |
|
| UASM_EXPORT_SYMBOL (uasm_il_bgezl) |
|
void __uasminit | uasm_il_bgez (u32 **p, struct uasm_reloc **r, unsigned int reg, int lid) |
|
| UASM_EXPORT_SYMBOL (uasm_il_bgez) |
|
void __uasminit | uasm_il_bbit0 (u32 **p, struct uasm_reloc **r, unsigned int reg, unsigned int bit, int lid) |
|
| UASM_EXPORT_SYMBOL (uasm_il_bbit0) |
|
void __uasminit | uasm_il_bbit1 (u32 **p, struct uasm_reloc **r, unsigned int reg, unsigned int bit, int lid) |
|
| UASM_EXPORT_SYMBOL (uasm_il_bbit1) |
|
Value:
{ \
} \
UASM_EXPORT_SYMBOL(uasm_i##
op);
Definition at line 376 of file uasm.c.
Value:
{ \
} \
UASM_EXPORT_SYMBOL(uasm_i##
op);
Definition at line 369 of file uasm.c.
Value:
{ \
} \
UASM_EXPORT_SYMBOL(uasm_i##
op);
Definition at line 362 of file uasm.c.
Value:
{ \
} \
UASM_EXPORT_SYMBOL(uasm_i##
op);
Definition at line 355 of file uasm.c.
Value:
{ \
} \
UASM_EXPORT_SYMBOL(uasm_i##
op);
Definition at line 313 of file uasm.c.
Value:
{ \
} \
UASM_EXPORT_SYMBOL(uasm_i##
op);
Definition at line 292 of file uasm.c.
Value:
{ \
} \
UASM_EXPORT_SYMBOL(uasm_i##
op);
Definition at line 320 of file uasm.c.
#define I_u2u1msb32u3 |
( |
|
op | ) |
|
Value:
{ \
} \
UASM_EXPORT_SYMBOL(uasm_i##
op);
Definition at line 341 of file uasm.c.
#define I_u2u1msbdu3 |
( |
|
op | ) |
|
Value:
{ \
} \
UASM_EXPORT_SYMBOL(uasm_i##
op);
Definition at line 348 of file uasm.c.
#define I_u2u1msbu3 |
( |
|
op | ) |
|
Value:
{ \
} \
UASM_EXPORT_SYMBOL(uasm_i##
op);
Definition at line 334 of file uasm.c.
Value:
{ \
} \
UASM_EXPORT_SYMBOL(uasm_i##
op);
Definition at line 327 of file uasm.c.
Value:
{ \
} \
UASM_EXPORT_SYMBOL(uasm_i##
op);
Definition at line 299 of file uasm.c.
Value:
{ \
} \
UASM_EXPORT_SYMBOL(uasm_i##
op);
Definition at line 306 of file uasm.c.
#define JIMM_MASK 0x3ffffff |
#define M |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e, |
|
|
|
f |
|
) |
| |
Value:
Definition at line 81 of file uasm.c.
#define SCIMM_MASK 0xfffff |
- Enumerator:
RS |
|
RT |
|
RD |
|
RE |
|
SIMM |
|
UIMM |
|
BIMM |
|
JIMM |
|
FUNC |
|
SET |
|
SCIMM |
|
Definition at line 24 of file uasm.c.
- Enumerator:
insn_invalid |
|
insn_addiu |
|
insn_addu |
|
insn_and |
|
insn_andi |
|
insn_bbit0 |
|
insn_bbit1 |
|
insn_beq |
|
insn_beql |
|
insn_bgez |
|
insn_bgezl |
|
insn_bltz |
|
insn_bltzl |
|
insn_bne |
|
insn_cache |
|
insn_daddiu |
|
insn_daddu |
|
insn_dins |
|
insn_dinsm |
|
insn_dmfc0 |
|
insn_dmtc0 |
|
insn_drotr |
|
insn_drotr32 |
|
insn_dsll |
|
insn_dsll32 |
|
insn_dsra |
|
insn_dsrl |
|
insn_dsrl32 |
|
insn_dsubu |
|
insn_eret |
|
insn_ext |
|
insn_ins |
|
insn_j |
|
insn_jal |
|
insn_jr |
|
insn_ld |
|
insn_ldx |
|
insn_ll |
|
insn_lld |
|
insn_lui |
|
insn_lw |
|
insn_lwx |
|
insn_mfc0 |
|
insn_mtc0 |
|
insn_or |
|
insn_ori |
|
insn_pref |
|
insn_rfe |
|
insn_rotr |
|
insn_sc |
|
insn_scd |
|
insn_sd |
|
insn_sll |
|
insn_sra |
|
insn_srl |
|
insn_subu |
|
insn_sw |
|
insn_syscall |
|
insn_tlbp |
|
insn_tlbr |
|
insn_tlbwi |
|
insn_tlbwr |
|
insn_xor |
|
insn_xori |
|
Definition at line 59 of file uasm.c.