diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-07-18 21:23:34 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-07-18 21:23:34 +0000 |
commit | 74ccb34e6b52d06d577b5e3695d86d7f440431df (patch) | |
tree | 365c29d79163c3a3d841f03786b526ae989df119 /dyngen-exec.h | |
parent | Sparc64 user emulator fixes (Blue Swirl) (diff) | |
download | qemu-kvm-74ccb34e6b52d06d577b5e3695d86d7f440431df.tar.gz qemu-kvm-74ccb34e6b52d06d577b5e3695d86d7f440431df.tar.bz2 qemu-kvm-74ccb34e6b52d06d577b5e3695d86d7f440431df.zip |
Sparc64 host support (Blue Swirl)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2064 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'dyngen-exec.h')
-rw-r--r-- | dyngen-exec.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dyngen-exec.h b/dyngen-exec.h index 0478ade88..0c392283d 100644 --- a/dyngen-exec.h +++ b/dyngen-exec.h @@ -35,12 +35,15 @@ typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; +// Linux/Sparc64 defines uint64_t +#if !(defined (__sparc_v9__) && defined(__linux__)) /* XXX may be done for all 64 bits targets ? */ #if defined (__x86_64__) || defined(__ia64) typedef unsigned long uint64_t; #else typedef unsigned long long uint64_t; #endif +#endif /* if Solaris/__sun__, don't typedef int8_t, as it will be typedef'd prior to this and will cause an error in compliation, conflicting @@ -50,11 +53,14 @@ typedef signed char int8_t; #endif typedef signed short int16_t; typedef signed int int32_t; +// Linux/Sparc64 defines int64_t +#if !(defined (__sparc_v9__) && defined(__linux__)) #if defined (__x86_64__) || defined(__ia64) typedef signed long int64_t; #else typedef signed long long int64_t; #endif +#endif #define INT8_MIN (-128) #define INT16_MIN (-32767-1) @@ -128,6 +134,12 @@ extern int printf(const char *, ...); #define AREG3 "g5" #define AREG4 "g6" #else +#ifdef __sparc_v9__ +#define AREG0 "g1" +#define AREG1 "g4" +#define AREG2 "g5" +#define AREG3 "g7" +#else #define AREG0 "g6" #define AREG1 "g1" #define AREG2 "g2" @@ -141,6 +153,7 @@ extern int printf(const char *, ...); #define AREG10 "l6" #define AREG11 "l7" #endif +#endif #define USE_FP_CONVERT #endif #ifdef __s390__ |