Browse Source

* include/cln/config.h.in: Add support for PowerPC 64 CPU.

* include/cln/modules.h: Likewise.
* include/cln/object.h: Likewise.
* include/cln/types.h: Likewise.
master
Richard Kreckel 20 years ago
parent
commit
77bcf72d79
  1. 9
      ChangeLog
  2. 4
      include/cln/config.h.in
  3. 4
      include/cln/modules.h
  4. 2
      include/cln/object.h
  5. 6
      include/cln/types.h

9
ChangeLog

@ -1,4 +1,11 @@
2005-08-24 Richard B. Kreckel <kreckel@ginac.de>
2005-08-02 Andreas Jochens <aj@andaco.de>
* include/cln/config.h.in: Add support for PowerPC 64 CPU.
* include/cln/modules.h: Likewise.
* include/cln/object.h: Likewise.
* include/cln/types.h: Likewise.
2005-07-24 Richard B. Kreckel <kreckel@ginac.de>
Make out of the box build on x86_64 system with complete 32 bit Make out of the box build on x86_64 system with complete 32 bit
userland possible userland possible

4
include/cln/config.h.in

@ -68,6 +68,10 @@
#undef __rs6000__ #undef __rs6000__
#endif #endif
#ifndef __powerpc64__
#undef __powerpc64__
#endif
#ifndef __m88k__ #ifndef __m88k__
#undef __m88k__ #undef __m88k__
#endif #endif

4
include/cln/modules.h

@ -64,7 +64,7 @@
#endif #endif
// Globalize a label defined in the same translation unit. // Globalize a label defined in the same translation unit.
// See macro ASM_GLOBALIZE_LABEL in the gcc sources. // See macro ASM_GLOBALIZE_LABEL in the gcc sources.
#if defined(__i386__) || defined(__m68k__) || defined(__mips__) || defined(__mipsel__) || defined(__mips64__) || defined(__alpha__) || defined(__rs6000__) || defined(__x86_64__) || defined(__s390__)
#if defined(__i386__) || defined(__m68k__) || defined(__mips__) || defined(__mipsel__) || defined(__mips64__) || defined(__alpha__) || defined(__rs6000__) || defined(__powerpc64__) || defined(__x86_64__) || defined(__s390__)
// Some m68k systems use "xdef" or "global" or ".global"... // Some m68k systems use "xdef" or "global" or ".global"...
#define CL_GLOBALIZE_LABEL(label) __asm__("\t.globl " label); #define CL_GLOBALIZE_LABEL(label) __asm__("\t.globl " label);
#endif #endif
@ -142,7 +142,7 @@
#if defined(__arm__) #if defined(__arm__)
#define CL_JUMP_TO(addr) ASM_VOLATILE("mov pc,%0" : : "r" ((void*)(addr))) #define CL_JUMP_TO(addr) ASM_VOLATILE("mov pc,%0" : : "r" ((void*)(addr)))
#endif #endif
#if defined(__rs6000__) || defined(__powerpc__) || defined(__ppc__)
#if defined(__rs6000__) || defined(__powerpc__) || defined(__ppc__) || defined(__powerpc64__)
//#define CL_JUMP_TO(addr) ASM_VOLATILE("mtctr %0\n\tbctr" : : "r" ((void*)(addr))) //#define CL_JUMP_TO(addr) ASM_VOLATILE("mtctr %0\n\tbctr" : : "r" ((void*)(addr)))
#define CL_JUMP_TO(addr) ASM_VOLATILE("b " ASM_UNDERSCORE_PREFIX #addr) #define CL_JUMP_TO(addr) ASM_VOLATILE("b " ASM_UNDERSCORE_PREFIX #addr)
#endif #endif

2
include/cln/object.h

@ -25,7 +25,7 @@ namespace cln {
#if defined(__i386__) || defined(__mips__) || defined(__mipsel__) || defined(__sparc__) || defined(__hppa__) || defined(__arm__) || defined(__rs6000__) || defined(__m88k__) || defined(__convex__) || defined(__s390__) #if defined(__i386__) || defined(__mips__) || defined(__mipsel__) || defined(__sparc__) || defined(__hppa__) || defined(__arm__) || defined(__rs6000__) || defined(__m88k__) || defined(__convex__) || defined(__s390__)
#define cl_word_alignment 4 #define cl_word_alignment 4
#endif #endif
#if defined(__alpha__) || defined(__mips64__) || defined(__sparc64__) || defined(__ia64__) || defined(__x86_64__)
#if defined(__alpha__) || defined(__ia64__) || defined(__mips64__) || defined(__powerpc64__) || defined(__sparc64__) || defined(__x86_64__)
#define cl_word_alignment 8 #define cl_word_alignment 8
#endif #endif
#if !defined(cl_word_alignment) #if !defined(cl_word_alignment)

6
include/cln/types.h

@ -48,7 +48,7 @@
#undef HAVE_LONGLONG #undef HAVE_LONGLONG
#endif #endif
#endif #endif
#if defined(HAVE_LONGLONG) && (defined(__alpha__) || defined(__mips64__) || defined(__sparc64__) || defined(__ia64__) || defined(__x86_64__))
#if defined(HAVE_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__mips64__) || defined(__powerpc64__) || defined(__sparc64__) || defined(__x86_64__))
// 64 bit registers in hardware // 64 bit registers in hardware
#define HAVE_FAST_LONGLONG #define HAVE_FAST_LONGLONG
#endif #endif
@ -85,7 +85,7 @@
#define signean_minus -1 #define signean_minus -1
// Integer type used for counters. // Integer type used for counters.
#if (defined(HAVE_FAST_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__x86_64__)))
#if (defined(HAVE_FAST_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__)))
#define intCsize long_bitsize #define intCsize long_bitsize
typedef long sintC; typedef long sintC;
typedef unsigned long uintC; typedef unsigned long uintC;
@ -119,7 +119,7 @@
typedef int sintD; typedef int sintD;
typedef unsigned int uintD; typedef unsigned int uintD;
#else // we are not using GMP, so just guess something reasonable #else // we are not using GMP, so just guess something reasonable
#if (defined(HAVE_FAST_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__x86_64__)))
#if (defined(HAVE_FAST_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__)))
#define intDsize 64 #define intDsize 64
typedef sint64 sintD; typedef sint64 sintD;
typedef uint64 uintD; typedef uint64 uintD;
Loading…
Cancel
Save