Rename Q_PROCESSOR_POWERPC to Q_PROCESSOR_POWER
IBM's POWER and the PowerPC architecture have been merged into a single ISA, the Power ISA (see http://www.power.org). Use this unified name in Qt. Change-Id: Ia41492b0031d890843e43c5f7ecd1e60c65bb75b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
52072a8c8a
commit
3cb078a23c
@ -12,7 +12,7 @@ HEADERS += \
|
||||
arch/qatomic_i386.h \
|
||||
arch/qatomic_ia64.h \
|
||||
arch/qatomic_mips.h \
|
||||
arch/qatomic_powerpc.h \
|
||||
arch/qatomic_power.h \
|
||||
arch/qatomic_s390.h \
|
||||
arch/qatomic_sh4a.h \
|
||||
arch/qatomic_sparc.h \
|
||||
|
@ -39,8 +39,8 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QATOMIC_POWERPC_H
|
||||
#define QATOMIC_POWERPC_H
|
||||
#ifndef QATOMIC_POWER_H
|
||||
#define QATOMIC_POWER_H
|
||||
|
||||
#include <QtCore/qoldbasicatomic.h>
|
||||
|
||||
@ -105,13 +105,11 @@ Q_INLINE_TEMPLATE bool QBasicAtomicPointer<T>::isFetchAndAddWaitFree()
|
||||
|
||||
#if defined(Q_CC_GNU)
|
||||
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2) \
|
||||
|| (!defined(__64BIT__) && !defined(__powerpc64__) && !defined(__ppc64__))
|
||||
#ifdef Q_PROCESSOR_POWER_32
|
||||
# define _Q_VALUE "0, %[_q_value]"
|
||||
# define _Q_VALUE_MEMORY_OPERAND "+m" (_q_value)
|
||||
# define _Q_VALUE_REGISTER_OPERAND [_q_value] "r" (&_q_value),
|
||||
#else
|
||||
// On 64-bit with gcc >= 4.2
|
||||
#else // Q_PROCESSOR_POWER_64
|
||||
# define _Q_VALUE "%y[_q_value]"
|
||||
# define _Q_VALUE_MEMORY_OPERAND [_q_value] "+Z" (_q_value)
|
||||
# define _Q_VALUE_REGISTER_OPERAND
|
||||
@ -301,7 +299,7 @@ inline int QBasicAtomicInt::fetchAndAddRelease(int valueToAdd)
|
||||
return originalValue;
|
||||
}
|
||||
|
||||
#if defined(__64BIT__) || defined(__powerpc64__) || defined(__ppc64__)
|
||||
#ifdef Q_PROCESSOR_POWER_64
|
||||
# define LPARX "ldarx"
|
||||
# define STPCX "stdcx."
|
||||
#else
|
||||
@ -475,7 +473,7 @@ Q_INLINE_TEMPLATE T *QBasicAtomicPointer<T>::fetchAndAddRelease(qptrdiff valueTo
|
||||
#undef _Q_VALUE_REGISTER_OPERAND
|
||||
|
||||
#else
|
||||
# error "This compiler for PowerPC is not supported"
|
||||
# error "This compiler for Power/PowerPC is not supported"
|
||||
#endif
|
||||
|
||||
inline bool QBasicAtomicInt::testAndSetOrdered(int expectedValue, int newValue)
|
||||
@ -515,4 +513,4 @@ QT_END_NAMESPACE
|
||||
|
||||
QT_END_HEADER
|
||||
|
||||
#endif // QATOMIC_POWERPC_H
|
||||
#endif // QATOMIC_POWER_H
|
@ -45,7 +45,7 @@
|
||||
QT_BEGIN_HEADER
|
||||
|
||||
#if defined(__ppc)
|
||||
# include <QtCore/qatomic_powerpc.h>
|
||||
# include <QtCore/qatomic_power.h>
|
||||
#else // generic implementation with taskLock()
|
||||
|
||||
#include <QtCore/qoldbasicatomic.h>
|
||||
|
@ -1489,18 +1489,27 @@ bool qSharedBuild()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\macro Q_PROCESSOR_POWERPC
|
||||
\macro Q_PROCESSOR_POWER
|
||||
\relates <QtGlobal>
|
||||
|
||||
Defined if the application is compiled for PowerPC processors. Qt currently
|
||||
supports one optional PowerPC variant: \l Q_PROCESSOR_POWERPC_64.
|
||||
Defined if the application is compiled for POWER processors. Qt currently
|
||||
supports two Power variants: \l Q_PROCESSOR_POWER_32 and \l
|
||||
Q_PROCESSOR_POWER_64.
|
||||
*/
|
||||
/*!
|
||||
\macro Q_PROCESSOR_POWERPC_64
|
||||
\macro Q_PROCESSOR_POWER_32
|
||||
\relates <QtGlobal>
|
||||
|
||||
Defined if the application is compiled for 64-bit PowerPC processors. The
|
||||
\l Q_PROCESSOR_POWERPC macro is also defined when Q_PROCESSOR_POWERPC_64 is
|
||||
Defined if the application is compiled for 32-bit Power processors. The \l
|
||||
Q_PROCESSOR_POWER macro is also defined when Q_PROCESSOR_POWER_32 is
|
||||
defined.
|
||||
*/
|
||||
/*!
|
||||
\macro Q_PROCESSOR_POWER_64
|
||||
\relates <QtGlobal>
|
||||
|
||||
Defined if the application is compiled for 64-bit Power processors. The \l
|
||||
Q_PROCESSOR_POWER macro is also defined when Q_PROCESSOR_POWER_64 is
|
||||
defined.
|
||||
*/
|
||||
|
||||
|
@ -145,17 +145,21 @@
|
||||
# endif
|
||||
|
||||
/*
|
||||
POWER family, optional variant: 64-bit
|
||||
Power family, known variants: 32- and 64-bit
|
||||
|
||||
There are many more known variants/revisions that we do not handle/detect.
|
||||
See http://en.wikipedia.org/wiki/Power_Architecture
|
||||
and http://en.wikipedia.org/wiki/File:PowerISA-evolution.svg
|
||||
*/
|
||||
// #elif defined(__powerpc__) || defined(__ppc__) || defined(_M_MPPC) || defined(_M_PPC)
|
||||
// # define Q_PROCESSOR_POWERPC
|
||||
// # if defined(__64BIT__) || defined(__powerpc64__) || defined(__ppc64__)
|
||||
// # define Q_PROCESSOR_POWERPC_64
|
||||
// # endif
|
||||
#elif defined(__ppc__) || defined(__ppc) || defined(__powerpc__) \
|
||||
|| defined(_ARCH_COM) || defined(_ARCH_PWR) || defined(_ARCH_PPC) \
|
||||
|| defined(_M_MPPC) || defined(_M_PPC)
|
||||
# define Q_PROCESSOR_POWER
|
||||
# if defined(__ppc64__) || defined(__powerpc64__) || defined(__64BIT__)
|
||||
# define Q_PROCESSOR_POWER_64
|
||||
# else
|
||||
# define Q_PROCESSOR_POWER_32
|
||||
# endif
|
||||
|
||||
/*
|
||||
S390 family, known variant: S390X (64-bit)
|
||||
|
@ -72,8 +72,8 @@
|
||||
# include "QtCore/qatomic_ia64.h"
|
||||
#elif defined(Q_PROCESSOR_MIPS)
|
||||
# include "QtCore/qatomic_mips.h"
|
||||
#elif defined(Q_PROCESSOR_POWERPC)
|
||||
# include "QtCore/qatomic_powerpc.h"
|
||||
#elif defined(Q_PROCESSOR_POWER)
|
||||
# include "QtCore/qatomic_power.h"
|
||||
#elif defined(Q_PROCESSOR_S390)
|
||||
# include "QtCore/qatomic_s390.h"
|
||||
#elif defined(Q_PROCESSOR_SH4A)
|
||||
|
Loading…
Reference in New Issue
Block a user