diff options
Diffstat (limited to 'gas/config/bfin-defs.h')
-rw-r--r-- | gas/config/bfin-defs.h | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/gas/config/bfin-defs.h b/gas/config/bfin-defs.h index 213e8bf..adcfda4 100644 --- a/gas/config/bfin-defs.h +++ b/gas/config/bfin-defs.h @@ -20,10 +20,10 @@ 02110-1301, USA. */ #ifndef BFIN_PARSE_H -#define BFIN_PARSE_H +#define BFIN_PARSE_H #define PCREL 1 -#define CODE_FRAG_SIZE 4096 /* 1 page. */ +#define CODE_FRAG_SIZE 4096 /* 1 page. */ /* Definition for all status bits. */ @@ -36,7 +36,7 @@ typedef enum c_uimm2, c_uimm3, c_imm3, - c_pcrel4, + c_pcrel4, c_imm4, c_uimm4s4, c_uimm4, @@ -44,7 +44,7 @@ typedef enum c_negimm5s4, c_imm5, c_uimm5, - c_imm6, + c_imm6, c_imm7, c_imm8, c_uimm8, @@ -52,7 +52,7 @@ typedef enum c_uimm8s4, c_pcrel8s4, c_lppcrel10, - c_pcrel10, + c_pcrel10, c_pcrel12, c_imm16s4, c_luimm16, @@ -60,9 +60,9 @@ typedef enum c_huimm16, c_rimm16, c_imm16s2, - c_uimm16s4, + c_uimm16s4, c_uimm16, - c_pcrel24 + c_pcrel24 } const_forms_t; @@ -88,19 +88,19 @@ typedef enum enum machine_registers { - REG_R0 = T_REG_R, REG_R1, REG_R2, REG_R3, REG_R4, REG_R5, REG_R6, REG_R7, + REG_R0 = T_REG_R, REG_R1, REG_R2, REG_R3, REG_R4, REG_R5, REG_R6, REG_R7, REG_P0 = T_REG_P, REG_P1, REG_P2, REG_P3, REG_P4, REG_P5, REG_SP, REG_FP, REG_I0 = T_REG_I, REG_I1, REG_I2, REG_I3, - REG_M0 = T_REG_M, REG_M1, REG_M2, REG_M3, + REG_M0 = T_REG_M, REG_M1, REG_M2, REG_M3, REG_B0 = T_REG_B, REG_B1, REG_B2, REG_B3, - REG_L0 = T_REG_L, REG_L1, REG_L2, REG_L3, + REG_L0 = T_REG_L, REG_L1, REG_L2, REG_L3, REG_A0x = T_REG_A, REG_A0w, REG_A1x, REG_A1w, REG_ASTAT = 0x46, REG_RETS = 0x47, REG_LC0 = 0x60, REG_LT0, REG_LB0, REG_LC1, REG_LT1, REG_LB1, REG_CYCLES, REG_CYCLES2, REG_USP = 0x70, REG_SEQSTAT, REG_SYSCFG, - REG_RETI, REG_RETX, REG_RETN, REG_RETE, REG_EMUDAT, + REG_RETI, REG_RETX, REG_RETN, REG_RETE, REG_EMUDAT, /* These don't have groups. */ REG_sftreset = T_NOGROUP, REG_omode, REG_excause, REG_emucause, @@ -108,9 +108,9 @@ enum machine_registers REG_A0 = 0xc0, REG_A1, REG_CC, /* Pseudo registers, used only for distinction from symbols. */ REG_RL0, REG_RL1, REG_RL2, REG_RL3, - REG_RL4, REG_RL5, REG_RL6, REG_RL7, + REG_RL4, REG_RL5, REG_RL6, REG_RL7, REG_RH0, REG_RH1, REG_RH2, REG_RH3, - REG_RH4, REG_RH5, REG_RH6, REG_RH7, + REG_RH4, REG_RH5, REG_RH6, REG_RH7, REG_LASTREG }; @@ -129,7 +129,7 @@ enum statusflags S_AV1S, S_V = 24, S_VS = 25 -}; +}; enum reg_class @@ -224,7 +224,7 @@ enum reg_class /* Expression value macros. */ typedef enum -{ +{ ones_compl, twos_compl, mult, @@ -242,7 +242,7 @@ typedef enum struct expressionS; #define SYMBOL_T symbolS* - + struct expression_cell { int value; @@ -258,14 +258,14 @@ struct bfin_insn int pcrel; int reloc; }; - + #define INSTR_T struct bfin_insn* -#define EXPR_T struct expression_cell* +#define EXPR_T struct expression_cell* typedef struct expr_node_struct Expr_Node; - + extern INSTR_T gencode (unsigned long x); -extern INSTR_T conscode (INSTR_T head, INSTR_T tail); +extern INSTR_T conscode (INSTR_T head, INSTR_T tail); extern INSTR_T conctcode (INSTR_T head, INSTR_T tail); extern INSTR_T note_reloc (INSTR_T code, Expr_Node *, int reloc,int pcrel); @@ -273,9 +273,9 @@ extern INSTR_T note_reloc1 (INSTR_T code, const char * sym, int reloc, int pcrel); extern INSTR_T note_reloc2 (INSTR_T code, const char *symbol, int reloc, int value, int pcrel); - + /* Types of expressions. */ -typedef enum +typedef enum { Expr_Node_Binop, /* Binary operator. */ Expr_Node_Unop, /* Unary operator. */ @@ -285,7 +285,7 @@ typedef enum } Expr_Node_Type; /* Types of operators. */ -typedef enum +typedef enum { Expr_Op_Type_Add, Expr_Op_Type_Sub, @@ -322,17 +322,17 @@ struct expr_node_struct /* Operations on the expression node. */ -Expr_Node *Expr_Node_Create (Expr_Node_Type type, - Expr_Node_Value value, - Expr_Node *Left_Child, +Expr_Node *Expr_Node_Create (Expr_Node_Type type, + Expr_Node_Value value, + Expr_Node *Left_Child, Expr_Node *Right_Child); /* Generate the reloc structure as a series of instructions. */ INSTR_T Expr_Node_Gen_Reloc (Expr_Node *head, int parent_reloc); - + #define MKREF(x) mkexpr (0,x) #define ALLOCATE(x) malloc (x) - + #define NULL_CODE ((INSTR_T) 0) #ifndef EXPR_VALUE |