update copyright year range in GDB files
[deliverable/binutils-gdb.git] / sim / ppc / words.h
index 35bdaddd15d0b281559840d3e48a3d2f64155524..7645349ac5b4e62c863ff3b808f7647bfed53713 100644 (file)
@@ -4,7 +4,7 @@
 
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License
-   as published by the Free Software Foundation; either version 2 of
+   as published by the Free Software Foundation; either version 3 of
    the License, or (at your option) any later version.
  
    This library is distributed in the hope that it will be useful, but
@@ -13,8 +13,7 @@
    Library General Public License for more details.
  
    You should have received a copy of the GNU Library General Public
-   License along with this library; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+   License along with this library; if not, see <http://www.gnu.org/licenses/>.
  
    --
 
      *_NN       Size according to the number of bytes
      *_word     Size based on the target architecture's word
                word size (32/64 bits)
+     *_cell     Size based on the target architecture's
+               IEEE 1275 cell size (almost always 32 bits)
 
 */
 
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 /* bit based */
 typedef char natural8;
 typedef short natural16;
-typedef long natural32;
-typedef long long natural64;
+typedef int natural32;
 
 typedef signed char signed8;
 typedef signed short signed16;
-typedef signed long signed32;
-typedef signed long long signed64;
+typedef signed int signed32;
 
 typedef unsigned char unsigned8;
 typedef unsigned short unsigned16;
-typedef unsigned long unsigned32;
+typedef unsigned int unsigned32;
+
+#ifdef __GNUC__
+typedef long long natural64;
+typedef signed long long signed64;
 typedef unsigned long long unsigned64;
+#endif
+
+#ifdef _MSC_VER
+typedef __int64 natural64;
+typedef signed __int64 signed64;
+typedef unsigned __int64 unsigned64;
+#endif 
 
 
 /* byte based */
@@ -83,7 +97,7 @@ typedef unsigned64 unsigned_8;
 /* int:      small indicator */
 
 /* target architecture based */
-#if (WITH_64BIT_TARGET)
+#if (WITH_TARGET_WORD_BITSIZE == 64)
 typedef natural64 natural_word;
 typedef unsigned64 unsigned_word;
 typedef signed64 signed_word;
@@ -97,4 +111,9 @@ typedef signed32 signed_word;
 /* Other instructions */
 typedef unsigned32 instruction_word;
 
+/* IEEE 1275 cell size - only support 32bit mode at present */
+typedef natural32 natural_cell;
+typedef unsigned32 unsigned_cell;
+typedef signed32 signed_cell;
+
 #endif /* _WORDS_H_ */
This page took 0.024693 seconds and 4 git commands to generate.