diff options
author | Kostis Sagonas <[email protected]> | 2011-02-10 02:32:27 +0200 |
---|---|---|
committer | Niclas Axelsson <[email protected]> | 2011-02-14 17:27:49 +0100 |
commit | dbba32bf7743b2ec5952c884ab9c7007db24d760 (patch) | |
tree | e42ede6e55c309143a582b78a3675598a981a135 /erts/emulator/hipe/hipe_ppc.h | |
parent | 60826a52cbed78fa3b30bacd6d37e1c7766f5d99 (diff) | |
download | otp-dbba32bf7743b2ec5952c884ab9c7007db24d760.tar.gz otp-dbba32bf7743b2ec5952c884ab9c7007db24d760.tar.bz2 otp-dbba32bf7743b2ec5952c884ab9c7007db24d760.zip |
Changes for the PPC64 backend
Diffstat (limited to 'erts/emulator/hipe/hipe_ppc.h')
-rw-r--r-- | erts/emulator/hipe/hipe_ppc.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/erts/emulator/hipe/hipe_ppc.h b/erts/emulator/hipe/hipe_ppc.h index 5c3d12392d..66000c1846 100644 --- a/erts/emulator/hipe/hipe_ppc.h +++ b/erts/emulator/hipe/hipe_ppc.h @@ -44,12 +44,20 @@ static __inline__ int hipe_word32_address_ok(void *address) return ((unsigned long)address & 0x3) == 0; } +#if defined(__powerpc64__) +/* for hipe_bifs_{read,write}_{s,u}64 */ +static __inline__ int hipe_word64_address_ok(void *address) +{ + return ((unsigned long)address & 0x7) == 0; +} +#endif + /* Native stack growth direction. */ #define HIPE_NSTACK_GROWS_DOWN #if defined(__powerpc64__) #define hipe_arch_name am_ppc64 -#define AEXTERN(RET,NAME,PROTO) extern const int NAME +#define AEXTERN(RET,NAME,PROTO) extern const int NAME[] AEXTERN(void,hipe_ppc_inc_stack,(void)); #else #define hipe_arch_name am_powerpc |