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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [gas/] [bit_fix.h] - Blame information for rev 252

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

Line No. Rev Author Line
1 205 julius
/* bit_fix.h
2
   Copyright 1987, 1992, 2000, 2001, 2003, 2005, 2007
3
   Free Software Foundation, Inc.
4
 
5
   This file is part of GAS, the GNU Assembler.
6
 
7
   GAS is free software; you can redistribute it and/or modify
8
   it under the terms of the GNU General Public License as published by
9
   the Free Software Foundation; either version 3, or (at your option)
10
   any later version.
11
 
12
   GAS is distributed in the hope that it will be useful, but WITHOUT
13
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
15
   License for more details.
16
 
17
   You should have received a copy of the GNU General Public License
18
   along with GAS; see the file COPYING.  If not, write to the Free
19
   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
20
   02110-1301, USA.  */
21
 
22
/* The bit_fix was implemented to support machines that need variables
23
   to be inserted in bitfields other than 1, 2 and 4 bytes.
24
   Furthermore it gives us a possibility to mask in bits in the symbol
25
   when it's fixed in the objectcode and check the symbols limits.
26
 
27
   The or-mask is used to set the huffman bits in displacements for the
28
   ns32k port.
29
   The acbi, addqi, movqi, cmpqi instruction requires an assembler that
30
   can handle bitfields.  Ie. handle an expression, evaluate it and insert
31
   the result in some bitfield.  (eg: 5 bits in a short field of an opcode).  */
32
 
33
#ifndef __bit_fix_h__
34
#define __bit_fix_h__
35
 
36
struct bit_fix {
37
  int fx_bit_size;              /* Length of bitfield */
38
  int fx_bit_offset;            /* Bit offset to bitfield */
39
  long fx_bit_base;             /* Where do we apply the bitfix.
40
                                   If this is zero, default is assumed.  */
41
  long fx_bit_base_adj;         /* Adjustment of base */
42
  long fx_bit_max;              /* Signextended max for bitfield */
43
  long fx_bit_min;              /* Signextended min for bitfield */
44
  long fx_bit_add;              /* Or mask, used for huffman prefix */
45
};
46
typedef struct bit_fix bit_fixS;
47
 
48
#endif /* __bit_fix_h__ */

powered by: WebSVN 2.1.0

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