Add POWER7/POWER8 as targets
authorFábio Perez <fabiovmp@gmail.com>
Wed, 5 Aug 2015 14:02:39 +0000 (11:02 -0300)
committerFábio Perez <fabiovmp@gmail.com>
Wed, 5 Aug 2015 14:02:39 +0000 (11:02 -0300)
TargetList.txt
cpuid_power.c
getarch.c

index 0a9d8b4..b2878ba 100644 (file)
@@ -44,6 +44,8 @@ NANO
 POWER4
 POWER5
 POWER6
+POWER7
+POWER8
 PPCG4
 PPC970
 PPC970MP
index 2fc333d..366c6ed 100644 (file)
@@ -115,6 +115,7 @@ int detect(void){
   if (!strncasecmp(p, "POWER5", 6)) return CPUTYPE_POWER5;
   if (!strncasecmp(p, "POWER6", 6)) return CPUTYPE_POWER6;
   if (!strncasecmp(p, "POWER7", 6)) return CPUTYPE_POWER6;
+  if (!strncasecmp(p, "POWER8", 6)) return CPUTYPE_POWER6;
   if (!strncasecmp(p, "Cell",   4)) return CPUTYPE_CELL;
   if (!strncasecmp(p, "7447",   4)) return CPUTYPE_PPCG4;
 
index d6ecaeb..d56a37a 100644 (file)
--- a/getarch.c
+++ b/getarch.c
@@ -116,6 +116,8 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 /* #define FORCE_POWER4                */
 /* #define FORCE_POWER5                */
 /* #define FORCE_POWER6                */
+/* #define FORCE_POWER7                */
+/* #define FORCE_POWER8                */
 /* #define FORCE_PPCG4         */
 /* #define FORCE_PPC970                */
 /* #define FORCE_PPC970MP      */
@@ -546,7 +548,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #define CORENAME  "POWER5"
 #endif
 
-#ifdef FORCE_POWER6
+#if defined(FORCE_POWER6) || defined(FORCE_POWER7) || defined(FORCE_POWER8)
 #define FORCE
 #define ARCHITECTURE    "POWER"
 #define SUBARCHITECTURE "POWER6"