diff options
author | Doug Evans <dje@google.com> | 2009-10-24 00:17:08 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-10-24 00:17:08 +0000 |
commit | ac1e9eca7030ead24000a8ab765b573ab0d38de2 (patch) | |
tree | 560441052f9bee1d44f382aa14182d7a548c0c23 /include/cgen/basic-modes.h | |
parent | 3f67a01471a324a36efcfc3d0c6fd34a25125b04 (diff) | |
download | fsf-binutils-gdb-ac1e9eca7030ead24000a8ab765b573ab0d38de2.zip fsf-binutils-gdb-ac1e9eca7030ead24000a8ab765b573ab0d38de2.tar.gz fsf-binutils-gdb-ac1e9eca7030ead24000a8ab765b573ab0d38de2.tar.bz2 |
cpu/
* m32c.opc (opc.h): cgen-types.h -> cgen/basic-modes.h.
cgen-ops.h -> cgen/basic-ops.h.
include/opcode/
* cgen-bitset.h: Delete, moved to ../cgen/bitset.h.
* cgen.h: Update. Improve multi-inclusion macro name.
include/cgen/
* basic-modes.h: New file. Moved here from opcodes/cgen-types.h.
* basic-ops.h: New file. Moved here from opcodes/cgen-ops.h.
* bitset.h: New file. Moved here from ../opcode/cgen-bitset.h.
Update license to GPL v3.
opcodes/
* cgen-ops.h: Delete, moved to ../include/cgen/basic-ops.h.
* cgen-types.h: Delete, moved to ../include/cgen/basic-modes.h.
* cgen-bitset.c: Update.
* fr30-desc.h: Regenerate.
* frv-desc.h: Regenerate.
* ip2k-desc.h: Regenerate.
* iq2000-desc.h: Regenerate.
* lm32-desc.h: Regenerate.
* m32c-desc.h: Regenerate.
* m32c-opc.h: Regenerate.
* m32r-desc.h: Regenerate.
* mep-desc.h: Regenerate.
* mt-desc.h: Regenerate.
* openrisc-desc.h: Regenerate.
* xc16x-desc.h: Regenerate.
* xstormy16-desc.h: Regenerate.
Diffstat (limited to 'include/cgen/basic-modes.h')
-rw-r--r-- | include/cgen/basic-modes.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/include/cgen/basic-modes.h b/include/cgen/basic-modes.h new file mode 100644 index 0000000..7583ee4 --- /dev/null +++ b/include/cgen/basic-modes.h @@ -0,0 +1,49 @@ +/* Basic CGEN modes. + Copyright 2005, 2007, 2009 Free Software Foundation, Inc. + Contributed by Red Hat. + + This file is part of the GNU opcodes library. + + This library is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + It is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING3. If not, write to the + Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA + 02110-1301, USA. */ + +#ifndef CGEN_BASIC_MODES_H +#define CGEN_BASIC_MODES_H + +/* This file doesn't contain all modes, + just the basic/portable ones. + It also provides access to stdint.h (*1) so the includer doesn't have + to deal with the portability issues. + (*1): To the extent that bfd_stdint.h does for now. */ + +/* IWBN to avoid unnecessary dependencies on bfd-anything. */ +#include "bfd_stdint.h" + +typedef int8_t QI; +typedef uint8_t UQI; + +typedef int16_t HI; +typedef uint16_t UHI; + +typedef int32_t SI; +typedef uint32_t USI; + +typedef int64_t DI; +typedef uint64_t UDI; + +typedef int INT; +typedef unsigned int UINT; + +#endif /* CGEN_BASIC_MODES_H */ |