diff options
author | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-14 18:39:49 +0000 |
---|---|---|
committer | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-14 18:39:49 +0000 |
commit | c9b418ea3deb63fe6fd4ac93c766d2b64d1704d6 (patch) | |
tree | f0388fd05761378accf4d5101e89a445045498bf /cpu-all.h | |
parent | 545815fd3ebedffa6b99e48a93d1213a2fb8f4ba (diff) | |
download | qemu-c9b418ea3deb63fe6fd4ac93c766d2b64d1704d6.tar.gz qemu-c9b418ea3deb63fe6fd4ac93c766d2b64d1704d6.tar.bz2 qemu-c9b418ea3deb63fe6fd4ac93c766d2b64d1704d6.zip |
Remove all traces of __powerpc__
According to $GCC/gcc/config/rs6000/rs6000-c.c _ARCH_PPC is the
ubiquitous define which should be used to test whether gcc targets
PowerPC, on 64bit platforms _ARCH_PPC64 will be also defined.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6301 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-all.h')
-rw-r--r-- | cpu-all.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -229,7 +229,7 @@ static inline void stb_p(void *ptr, int v) /* conservative code for little endian unaligned accesses */ static inline int lduw_le_p(const void *ptr) { -#ifdef __powerpc__ +#ifdef _ARCH_PPC int val; __asm__ __volatile__ ("lhbrx %0,0,%1" : "=r" (val) : "r" (ptr)); return val; @@ -241,7 +241,7 @@ static inline int lduw_le_p(const void *ptr) static inline int ldsw_le_p(const void *ptr) { -#ifdef __powerpc__ +#ifdef _ARCH_PPC int val; __asm__ __volatile__ ("lhbrx %0,0,%1" : "=r" (val) : "r" (ptr)); return (int16_t)val; @@ -253,7 +253,7 @@ static inline int ldsw_le_p(const void *ptr) static inline int ldl_le_p(const void *ptr) { -#ifdef __powerpc__ +#ifdef _ARCH_PPC int val; __asm__ __volatile__ ("lwbrx %0,0,%1" : "=r" (val) : "r" (ptr)); return val; @@ -274,7 +274,7 @@ static inline uint64_t ldq_le_p(const void *ptr) static inline void stw_le_p(void *ptr, int v) { -#ifdef __powerpc__ +#ifdef _ARCH_PPC __asm__ __volatile__ ("sthbrx %1,0,%2" : "=m" (*(uint16_t *)ptr) : "r" (v), "r" (ptr)); #else uint8_t *p = ptr; @@ -285,7 +285,7 @@ static inline void stw_le_p(void *ptr, int v) static inline void stl_le_p(void *ptr, int v) { -#ifdef __powerpc__ +#ifdef _ARCH_PPC __asm__ __volatile__ ("stwbrx %1,0,%2" : "=m" (*(uint32_t *)ptr) : "r" (v), "r" (ptr)); #else uint8_t *p = ptr; @@ -985,7 +985,7 @@ void qemu_unregister_coalesced_mmio(target_phys_addr_t addr, ram_addr_t size); /*******************************************/ /* host CPU ticks (if available) */ -#if defined(__powerpc__) +#if defined(_ARCH_PPC) static inline uint32_t get_tbl(void) { |