OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [config/] [tc-mep.h] - Blame information for rev 832

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* tc-mep.h -- Header file for tc-mep.c.
2
   Copyright (C) 2001, 2002, 2005, 2007 Free Software Foundation, Inc.
3
 
4
   This file is part of GAS, the GNU Assembler.
5
 
6
   GAS is free software; you can redistribute it and/or modify
7
   it under the terms of the GNU General Public License as published by
8
   the Free Software Foundation; either version 3, or (at your option)
9
   any later version.
10
 
11
   GAS is distributed in the hope that it will be useful,
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
   GNU General Public License for more details.
15
 
16
   You should have received a copy of the GNU General Public License
17
   along with GAS; see the file COPYING.  If not, write to
18
   the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19
   Boston, MA 02110-1301, USA. */
20
 
21
#define TC_MEP
22
 
23
/* Support computed relocations.  */
24
#define OBJ_COMPLEX_RELC
25
 
26
/* Support many operands per instruction.  */
27
#define GAS_CGEN_MAX_FIXUPS 10
28
 
29
#define LISTING_HEADER "MEP GAS "
30
 
31
/* The target BFD architecture.  */
32
#define TARGET_ARCH bfd_arch_mep
33
 
34
#define TARGET_FORMAT (target_big_endian ? "elf32-mep" : "elf32-mep-little")
35
 
36
/* This is the default.  */
37
#define TARGET_BYTES_BIG_ENDIAN 1
38
 
39
/* Permit temporary numeric labels. */
40
#define LOCAL_LABELS_FB 1
41
 
42
/* .-foo gets turned into PC relative relocs.  */
43
#define DIFF_EXPR_OK
44
 
45
/* We don't need to handle .word strangely.  */
46
#define WORKING_DOT_WORD
47
 
48
/* Values passed to md_apply_fix don't include the symbol value.  */
49
#define MD_APPLY_SYM_VALUE(FIX) 0
50
 
51
#define MD_APPLY_FIX
52
#define md_apply_fix mep_apply_fix
53
extern void mep_apply_fix (struct fix *, valueT *, segT);
54
 
55
/* Call md_pcrel_from_section(), not md_pcrel_from().  */
56
#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC)
57
extern long md_pcrel_from_section (struct fix *, segT);
58
 
59
#define tc_frob_file() mep_frob_file ()
60
extern void mep_frob_file (void);
61
 
62
#define tc_fix_adjustable(fixP) mep_fix_adjustable (fixP)
63
extern bfd_boolean mep_fix_adjustable (struct fix *);
64
 
65
/* After creating a fixup for an instruction operand, we need
66
   to check for HI16 relocs and queue them up for later sorting.  */
67
#define md_cgen_record_fixup_exp  mep_cgen_record_fixup_exp
68
 
69
/* When relaxing, we need to emit various relocs we otherwise wouldn't.  */
70
#define TC_FORCE_RELOCATION(fix) mep_force_relocation (fix)
71
extern int mep_force_relocation (struct fix *);
72
 
73
#define tc_gen_reloc gas_cgen_tc_gen_reloc
74
 
75
extern void gas_cgen_md_operand (expressionS *);
76
#define md_operand(x) gas_cgen_md_operand (x)
77
 
78
#define md_flush_pending_output() mep_flush_pending_output()
79
extern int mep_flush_pending_output(void);
80
 
81
extern const struct relax_type md_relax_table[];
82
#define TC_GENERIC_RELAX_TABLE md_relax_table
83
 
84
/* Account for inserting a jmp after the insn.  */
85
#define TC_CGEN_MAX_RELAX(insn, len) ((len) + 4)
86
 
87
extern void mep_prepare_relax_scan (fragS *, offsetT *, relax_substateT);
88
#define md_prepare_relax_scan(FRAGP, ADDR, AIM, STATE, TYPE) \
89
        mep_prepare_relax_scan (FRAGP, &AIM, STATE)
90
 
91
/* Support for core/vliw mode switching.  */
92
#define CORE 0
93
#define VLIW 1
94
#define MAX_PARALLEL_INSNS 56 /* From email from Toshiba.  */
95
#define VTEXT_SECTION_NAME ".vtext"
96
 
97
/* Needed to process pending instructions when a label is encountered.  */
98
#define TC_START_LABEL(ch, ptr)    ((ch == ':') && mep_flush_pending_output ())
99
 
100
#define tc_unrecognized_line(c) mep_unrecognized_line (c)
101
extern int mep_unrecognized_line (int);
102
#define md_cleanup mep_cleanup
103
extern void mep_cleanup (void);
104
 
105
#define md_elf_section_letter           mep_elf_section_letter
106
extern int mep_elf_section_letter (int, char **);
107
#define md_elf_section_flags            mep_elf_section_flags
108
extern flagword mep_elf_section_flags  (flagword, int, int);
109
 
110
#define ELF_TC_SPECIAL_SECTIONS \
111
  { VTEXT_SECTION_NAME, SHT_PROGBITS, SHF_ALLOC|SHF_EXECINSTR|SHF_MEP_VLIW },
112
 
113
/* The values of the following enum are for use with parinsnum, which
114
   is a variable in md_assemble that keeps track of whether or not the
115
   next instruction is expected to be the first or second instrucion in
116
   a parallelization group.  */
117
typedef enum exp_par_insn_{FIRST, SECOND} EXP_PAR_INSN;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.