Skip to contentSkip to conversation

linux-user: set ppc64/ppc64le default CPU to POWER8

PATCH Applied Laurent Vivier 5 participants 5 messages Feb 4, 2016 – Feb 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: set ppc64/ppc64le default CPU to POWER8

Set the default to the latest CPU version to have the largest set of available features.

It is also really needed in little-endian mode because POWER7 is not really supported in this mode and some distros (at least debian) generate POWER8 code for their ppc64le target.

---
 linux-user/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
linux-user/main.c +1 -1
index e719a2d..2a692e0 100644
@@ -4160,7 +4160,7 @@ int main(int argc, char **argv, char **envp)
         cpu_model = "or1200";
 #elif defined(TARGET_PPC)
 # ifdef TARGET_PPC64
-        cpu_model = "POWER7";
+        cpu_model = "POWER8";
 # else
         cpu_model = "750";
 # endif
Signature · 1 line
2.5.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Laurent Vivier

Set the default to the latest CPU version to have the largest set of available features.

It is also really needed in little-endian mode because POWER7 is not really supported in this mode and some distros (at least debian) generate POWER8 code for their ppc64le target.

Makes a lot of sense.

Alex

Reviewed-by on v1 1/1
#2 lore raw
In reply to Laurent Vivier
Quoted 8 lines · Laurent Vivier

Set the default to the latest CPU version to have the largest set of available features.

It is also really needed in little-endian mode because POWER7 is not really supported in this mode and some distros (at least debian) generate POWER8 code for their ppc64le target.

Thank you!

/mjt

Quoted 18 lines
---
 linux-user/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
linux-user/main.c +1 -1
index e719a2d..2a692e0 100644
@@ -4160,7 +4160,7 @@ int main(int argc, char **argv, char **envp)
         cpu_model = "or1200";
 #elif defined(TARGET_PPC)
 # ifdef TARGET_PPC64
-        cpu_model = "POWER7";
+        cpu_model = "POWER8";
 # else
         cpu_model = "750";
 # endif
Applied
#3 lore raw
In reply to Laurent Vivier
Quoted 6 lines · Laurent Vivier

Set the default to the latest CPU version to have the largest set of available features.

It is also really needed in little-endian mode because POWER7 is not really supported in this mode and some distros (at least debian) generate POWER8 code for their ppc64le target.

Applied, thanks.

Quoted 20 lines
---
 linux-user/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
linux-user/main.c +1 -1
index e719a2d..2a692e0 100644
@@ -4160,7 +4160,7 @@ int main(int argc, char **argv, char **envp)
         cpu_model = "or1200";
 #elif defined(TARGET_PPC)
 # ifdef TARGET_PPC64
-        cpu_model = "POWER7";
+        cpu_model = "POWER8";
 # else
         cpu_model = "750";
 # endif
#4 lore raw
In reply to Laurent Vivier
Quoted 10 lines · Laurent Vivier

Set the default to the latest CPU version to have the largest set of available features.

It is also really needed in little-endian mode because POWER7 is not really supported in this mode and some distros (at least debian) generate POWER8 code for their ppc64le target.

This patch is a good fix, but for the longer term is it possible on PPC to define an "any" CPU which is the largest possible set of usable-together userspace features? That would make it easier for us to avoid this problem in the future for POWER9, POWER10,...

thanks
-- PMM