Back to index

cell-binutils  2.17cvs20070401
Classes | Defines | Enumerations | Variables
cris.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cris_spec_reg
struct  cris_support_reg
struct  cris_cond15
struct  cris_opcode

Defines

#define const
#define MAX_REG   (15)
#define REG_SP   (14)
#define REG_PC   (15)
#define AUTOINCR_BIT   (0x04)
#define BDAP_QUICK_OPCODE   (0x0100)
#define BDAP_QUICK_Z_BITS   (0x0e00)
#define BIAP_OPCODE   (0x0540)
#define BIAP_Z_BITS   (0x0a80)
#define DIP_OPCODE   (0x0970)
#define DIP_Z_BITS   (0xf280)
#define BDAP_INDIR_LOW   (0x40)
#define BDAP_INDIR_LOW_Z   (0x80)
#define BDAP_INDIR_HIGH   (0x09)
#define BDAP_INDIR_HIGH_Z   (0x02)
#define BDAP_INDIR_OPCODE   (BDAP_INDIR_HIGH * 0x0100 + BDAP_INDIR_LOW)
#define BDAP_INDIR_Z_BITS   (BDAP_INDIR_HIGH_Z * 0x100 + BDAP_INDIR_LOW_Z)
#define BDAP_PC_LOW   (BDAP_INDIR_LOW + REG_PC)
#define BDAP_INCR_HIGH   (BDAP_INDIR_HIGH + AUTOINCR_BIT)
#define NO_CRIS_PREFIX   0
#define CC_CC   0x0
#define CC_HS   0x0
#define CC_CS   0x1
#define CC_LO   0x1
#define CC_NE   0x2
#define CC_EQ   0x3
#define CC_VC   0x4
#define CC_VS   0x5
#define CC_PL   0x6
#define CC_MI   0x7
#define CC_LS   0x8
#define CC_HI   0x9
#define CC_GE   0xA
#define CC_LT   0xB
#define CC_GT   0xC
#define CC_LE   0xD
#define CC_A   0xE
#define CC_EXT   0xF
#define BRANCH_QUICK_LOW   (0)
#define BRANCH_QUICK_HIGH   (0)
#define BRANCH_QUICK_OPCODE   (BRANCH_QUICK_HIGH * 0x0100 + BRANCH_QUICK_LOW)
#define BRANCH_QUICK_Z_BITS   (0x0F00)
#define BA_QUICK_HIGH   (BRANCH_QUICK_HIGH + CC_A * 0x10)
#define BA_QUICK_OPCODE   (BA_QUICK_HIGH * 0x100 + BRANCH_QUICK_LOW)
#define BRANCH_PC_LOW   (0xFF)
#define BRANCH_INCR_HIGH   (0x0D)
#define BA_PC_INCR_OPCODE   ((BRANCH_INCR_HIGH + CC_A * 0x10) * 0x0100 + BRANCH_PC_LOW)
#define JUMP_INDIR_OPCODE   (0x0930)
#define JUMP_INDIR_Z_BITS   (0xf2c0)
#define JUMP_PC_INCR_OPCODE   (JUMP_INDIR_OPCODE + AUTOINCR_BIT * 0x0100 + REG_PC)
#define MOVE_M_TO_PREG_OPCODE   0x0a30
#define MOVE_M_TO_PREG_ZBITS   0x01c0
#define MOVE_PC_INCR_OPCODE_PREFIX   (((BDAP_INCR_HIGH | (REG_PC << 4)) << 8) | BDAP_PC_LOW | (2 << 4))
#define MOVE_PC_INCR_OPCODE_SUFFIX   (MOVE_M_TO_PREG_OPCODE | REG_PC | (AUTOINCR_BIT << 8))
#define JUMP_PC_INCR_OPCODE_V32   (0x0DBF)
#define BA_DWORD_OPCODE   (0x0EBF)
#define NOP_OPCODE   (0x050F)
#define NOP_Z_BITS   (0xFFFF ^ NOP_OPCODE)
#define NOP_OPCODE_V32   (0x05B0)
#define NOP_Z_BITS_V32   (0xFFFF ^ NOP_OPCODE_V32)
#define NOP_OPCODE_COMMON   (0x630)
#define NOP_OPCODE_ZBITS_COMMON   (0xffff & ~NOP_OPCODE_COMMON)
#define LAPC_DWORD_OPCODE   (0x0D7F)
#define LAPC_DWORD_Z_BITS   (0x0fff & ~LAPC_DWORD_OPCODE)
#define CRIS_DIS_FLAG_MEMREF   (1 << 0)
#define CRIS_DIS_FLAG_MEM_TARGET_IS_REG   (1 << 1)
#define CRIS_DIS_FLAG_MEM_TARGET2_IS_REG   (1 << 2)
#define CRIS_DIS_FLAG_MEM_TARGET2_MULT2   (1 << 3)
#define CRIS_DIS_FLAG_MEM_TARGET2_MULT4   (1 << 4)
#define CRIS_DIS_FLAG_MEM_TARGET2_MEM   (1 << 5)
#define CRIS_DIS_FLAG_MEM_TARGET2_MEM_BYTE   (1 << 6)
#define CRIS_DIS_FLAG_MEM_TARGET2_MEM_WORD   (1 << 7)

Enumerations

enum  cris_insn_version_usage {
  cris_ver_version_all = 0, cris_ver_warning, cris_ver_v0_3, cris_ver_v3p,
  cris_ver_v8, cris_ver_v8p, cris_ver_sim_v0_10, cris_ver_v0_10,
  cris_ver_v3_10, cris_ver_v8_10, cris_ver_v10, cris_ver_v10p,
  cris_ver_v32p
}
enum  cris_imm_oprnd_size_type {
  SIZE_NONE, SIZE_FIX_32, SIZE_SPEC_REG, SIZE_FIELD_SIGNED,
  SIZE_FIELD_UNSIGNED, SIZE_FIELD
}
enum  cris_op_type {
  cris_not_implemented_op = 0, cris_abs_op, cris_addi_op, cris_asr_op,
  cris_asrq_op, cris_ax_ei_setf_op, cris_bdap_prefix, cris_biap_prefix,
  cris_break_op, cris_btst_nop_op, cris_clearf_di_op, cris_dip_prefix,
  cris_dstep_logshift_mstep_neg_not_op, cris_eight_bit_offset_branch_op, cris_move_mem_to_reg_movem_op, cris_move_reg_to_mem_movem_op,
  cris_move_to_preg_op, cris_muls_op, cris_mulu_op, cris_none_reg_mode_add_sub_cmp_and_or_move_op,
  cris_none_reg_mode_clear_test_op, cris_none_reg_mode_jump_op, cris_none_reg_mode_move_from_preg_op, cris_quick_mode_add_sub_op,
  cris_quick_mode_and_cmp_move_or_op, cris_quick_mode_bdap_prefix, cris_reg_mode_add_sub_cmp_and_or_move_op, cris_reg_mode_clear_op,
  cris_reg_mode_jump_op, cris_reg_mode_move_from_preg_op, cris_reg_mode_test_op, cris_scc_op,
  cris_sixteen_bit_offset_branch_op, cris_three_operand_add_sub_cmp_and_or_op, cris_three_operand_bound_op, cris_two_operand_bound_op,
  cris_xor_op
}

Variables

const char *const cris_cc_strings []

Class Documentation

struct cris_spec_reg

Definition at line 85 of file cris.h.

Class Members
const char *const name
unsigned int number
unsigned int reg_size
struct cris_support_reg

Definition at line 105 of file cris.h.

Class Members
const char *const name
unsigned int number
struct cris_cond15

Definition at line 112 of file cris.h.

Class Members
const char *const name
struct cris_opcode

Definition at line 295 of file cris.h.

Class Members
const char * args
char delayed
unsigned int lose
unsigned int match
const char * name

Define Documentation

#define AUTOINCR_BIT   (0x04)

Definition at line 123 of file cris.h.

#define BA_DWORD_OPCODE   (0x0EBF)

Definition at line 210 of file cris.h.

#define BA_PC_INCR_OPCODE   ((BRANCH_INCR_HIGH + CC_A * 0x10) * 0x0100 + BRANCH_PC_LOW)

Definition at line 186 of file cris.h.

#define BA_QUICK_HIGH   (BRANCH_QUICK_HIGH + CC_A * 0x10)

Definition at line 180 of file cris.h.

#define BA_QUICK_OPCODE   (BA_QUICK_HIGH * 0x100 + BRANCH_QUICK_LOW)

Definition at line 181 of file cris.h.

Definition at line 143 of file cris.h.

#define BDAP_INDIR_HIGH   (0x09)

Definition at line 137 of file cris.h.

#define BDAP_INDIR_HIGH_Z   (0x02)

Definition at line 138 of file cris.h.

#define BDAP_INDIR_LOW   (0x40)

Definition at line 135 of file cris.h.

#define BDAP_INDIR_LOW_Z   (0x80)

Definition at line 136 of file cris.h.

#define BDAP_INDIR_OPCODE   (BDAP_INDIR_HIGH * 0x0100 + BDAP_INDIR_LOW)

Definition at line 140 of file cris.h.

#define BDAP_INDIR_Z_BITS   (BDAP_INDIR_HIGH_Z * 0x100 + BDAP_INDIR_LOW_Z)

Definition at line 141 of file cris.h.

#define BDAP_PC_LOW   (BDAP_INDIR_LOW + REG_PC)

Definition at line 142 of file cris.h.

#define BDAP_QUICK_OPCODE   (0x0100)

Definition at line 126 of file cris.h.

#define BDAP_QUICK_Z_BITS   (0x0e00)

Definition at line 127 of file cris.h.

#define BIAP_OPCODE   (0x0540)

Definition at line 129 of file cris.h.

#define BIAP_Z_BITS   (0x0a80)

Definition at line 130 of file cris.h.

#define BRANCH_INCR_HIGH   (0x0D)

Definition at line 185 of file cris.h.

#define BRANCH_PC_LOW   (0xFF)

Definition at line 184 of file cris.h.

#define BRANCH_QUICK_HIGH   (0)

Definition at line 175 of file cris.h.

#define BRANCH_QUICK_LOW   (0)

Definition at line 174 of file cris.h.

#define BRANCH_QUICK_OPCODE   (BRANCH_QUICK_HIGH * 0x0100 + BRANCH_QUICK_LOW)

Definition at line 176 of file cris.h.

#define BRANCH_QUICK_Z_BITS   (0x0F00)

Definition at line 177 of file cris.h.

#define CC_A   0xE

Definition at line 166 of file cris.h.

#define CC_CC   0x0

Definition at line 150 of file cris.h.

#define CC_CS   0x1

Definition at line 152 of file cris.h.

#define CC_EQ   0x3

Definition at line 155 of file cris.h.

#define CC_EXT   0xF

Definition at line 167 of file cris.h.

#define CC_GE   0xA

Definition at line 162 of file cris.h.

#define CC_GT   0xC

Definition at line 164 of file cris.h.

#define CC_HI   0x9

Definition at line 161 of file cris.h.

#define CC_HS   0x0

Definition at line 151 of file cris.h.

#define CC_LE   0xD

Definition at line 165 of file cris.h.

#define CC_LO   0x1

Definition at line 153 of file cris.h.

#define CC_LS   0x8

Definition at line 160 of file cris.h.

#define CC_LT   0xB

Definition at line 163 of file cris.h.

#define CC_MI   0x7

Definition at line 159 of file cris.h.

#define CC_NE   0x2

Definition at line 154 of file cris.h.

#define CC_PL   0x6

Definition at line 158 of file cris.h.

#define CC_VC   0x4

Definition at line 156 of file cris.h.

#define CC_VS   0x5

Definition at line 157 of file cris.h.

#define const

Definition at line 27 of file cris.h.

#define CRIS_DIS_FLAG_MEM_TARGET2_IS_REG   (1 << 2)

Definition at line 336 of file cris.h.

#define CRIS_DIS_FLAG_MEM_TARGET2_MEM   (1 << 5)

Definition at line 349 of file cris.h.

#define CRIS_DIS_FLAG_MEM_TARGET2_MEM_BYTE   (1 << 6)

Definition at line 353 of file cris.h.

#define CRIS_DIS_FLAG_MEM_TARGET2_MEM_WORD   (1 << 7)

Definition at line 357 of file cris.h.

#define CRIS_DIS_FLAG_MEM_TARGET2_MULT2   (1 << 3)

Definition at line 340 of file cris.h.

#define CRIS_DIS_FLAG_MEM_TARGET2_MULT4   (1 << 4)

Definition at line 344 of file cris.h.

#define CRIS_DIS_FLAG_MEM_TARGET_IS_REG   (1 << 1)

Definition at line 333 of file cris.h.

#define CRIS_DIS_FLAG_MEMREF   (1 << 0)

Definition at line 330 of file cris.h.

#define DIP_OPCODE   (0x0970)

Definition at line 132 of file cris.h.

#define DIP_Z_BITS   (0xf280)

Definition at line 133 of file cris.h.

#define JUMP_INDIR_OPCODE   (0x0930)

Definition at line 193 of file cris.h.

#define JUMP_INDIR_Z_BITS   (0xf2c0)

Definition at line 194 of file cris.h.

#define JUMP_PC_INCR_OPCODE   (JUMP_INDIR_OPCODE + AUTOINCR_BIT * 0x0100 + REG_PC)

Definition at line 195 of file cris.h.

#define JUMP_PC_INCR_OPCODE_V32   (0x0DBF)

Definition at line 207 of file cris.h.

#define LAPC_DWORD_OPCODE   (0x0D7F)

Definition at line 227 of file cris.h.

#define LAPC_DWORD_Z_BITS   (0x0fff & ~LAPC_DWORD_OPCODE)

Definition at line 228 of file cris.h.

#define MAX_REG   (15)

Definition at line 32 of file cris.h.

#define MOVE_M_TO_PREG_OPCODE   0x0a30

Definition at line 198 of file cris.h.

#define MOVE_M_TO_PREG_ZBITS   0x01c0

Definition at line 199 of file cris.h.

#define MOVE_PC_INCR_OPCODE_PREFIX   (((BDAP_INCR_HIGH | (REG_PC << 4)) << 8) | BDAP_PC_LOW | (2 << 4))

Definition at line 202 of file cris.h.

Definition at line 204 of file cris.h.

#define NO_CRIS_PREFIX   0

Definition at line 147 of file cris.h.

#define NOP_OPCODE   (0x050F)

Definition at line 213 of file cris.h.

#define NOP_OPCODE_COMMON   (0x630)

Definition at line 223 of file cris.h.

#define NOP_OPCODE_V32   (0x05B0)

Definition at line 216 of file cris.h.

#define NOP_OPCODE_ZBITS_COMMON   (0xffff & ~NOP_OPCODE_COMMON)

Definition at line 224 of file cris.h.

#define NOP_Z_BITS   (0xFFFF ^ NOP_OPCODE)

Definition at line 214 of file cris.h.

#define NOP_Z_BITS_V32   (0xFFFF ^ NOP_OPCODE_V32)

Definition at line 217 of file cris.h.

#define REG_PC   (15)

Definition at line 34 of file cris.h.

#define REG_SP   (14)

Definition at line 33 of file cris.h.


Enumeration Type Documentation

Enumerator:
SIZE_NONE 
SIZE_FIX_32 
SIZE_SPEC_REG 
SIZE_FIELD_SIGNED 
SIZE_FIELD_UNSIGNED 
SIZE_FIELD 

Definition at line 231 of file cris.h.

{
  /* No size is applicable.  */
  SIZE_NONE,

  /* Always 32 bits.  */
  SIZE_FIX_32,

  /* Indicated by size of special register.  */
  SIZE_SPEC_REG,

  /* Indicated by size field, signed.  */
  SIZE_FIELD_SIGNED,

  /* Indicated by size field, unsigned.  */
  SIZE_FIELD_UNSIGNED,

  /* Indicated by size field, no sign implied.  */
  SIZE_FIELD
};
Enumerator:
cris_ver_version_all 
cris_ver_warning 
cris_ver_v0_3 
cris_ver_v3p 
cris_ver_v8 
cris_ver_v8p 
cris_ver_sim_v0_10 
cris_ver_v0_10 
cris_ver_v3_10 
cris_ver_v8_10 
cris_ver_v10 
cris_ver_v10p 
cris_ver_v32p 

Definition at line 39 of file cris.h.

{
  /* Any version.  */
  cris_ver_version_all=0,

  /* Indeterminate (intended for disassembly only, or obsolete).  */
  cris_ver_warning,

  /* Only for v0..3 (Etrax 1..4).  */
  cris_ver_v0_3,

  /* Only for v3 or higher (ETRAX 4 and beyond).  */
  cris_ver_v3p,

  /* Only for v8 (Etrax 100).  */
  cris_ver_v8,

  /* Only for v8 or higher (ETRAX 100, ETRAX 100 LX).  */
  cris_ver_v8p,

  /* Only for v0..10.  FIXME: Not sure what to do with this.  */
  cris_ver_sim_v0_10,

  /* Only for v0..10.  */
  cris_ver_v0_10,

  /* Only for v3..10.  (ETRAX 4, ETRAX 100 and ETRAX 100 LX).  */
  cris_ver_v3_10,

  /* Only for v8..10 (ETRAX 100 and ETRAX 100 LX).  */
  cris_ver_v8_10,

  /* Only for v10 (ETRAX 100 LX) and same series.  */
  cris_ver_v10,

  /* Only for v10 (ETRAX 100 LX) and same series.  */
  cris_ver_v10p,

  /* Only for v32 or higher (codename GUINNESS).
     Of course some or all these of may change to cris_ver_v32p if/when
     there's a new revision. */
  cris_ver_v32p
};
Enumerator:
cris_not_implemented_op 
cris_abs_op 
cris_addi_op 
cris_asr_op 
cris_asrq_op 
cris_ax_ei_setf_op 
cris_bdap_prefix 
cris_biap_prefix 
cris_break_op 
cris_btst_nop_op 
cris_clearf_di_op 
cris_dip_prefix 
cris_dstep_logshift_mstep_neg_not_op 
cris_eight_bit_offset_branch_op 
cris_move_mem_to_reg_movem_op 
cris_move_reg_to_mem_movem_op 
cris_move_to_preg_op 
cris_muls_op 
cris_mulu_op 
cris_none_reg_mode_add_sub_cmp_and_or_move_op 
cris_none_reg_mode_clear_test_op 
cris_none_reg_mode_jump_op 
cris_none_reg_mode_move_from_preg_op 
cris_quick_mode_add_sub_op 
cris_quick_mode_and_cmp_move_or_op 
cris_quick_mode_bdap_prefix 
cris_reg_mode_add_sub_cmp_and_or_move_op 
cris_reg_mode_clear_op 
cris_reg_mode_jump_op 
cris_reg_mode_move_from_preg_op 
cris_reg_mode_test_op 
cris_scc_op 
cris_sixteen_bit_offset_branch_op 
cris_three_operand_add_sub_cmp_and_or_op 
cris_three_operand_bound_op 
cris_two_operand_bound_op 
cris_xor_op 

Definition at line 254 of file cris.h.


Variable Documentation

Definition at line 1170 of file cris-opc.c.