linux-user: set ppc64/ppc64le default CPU to POWER8
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
@@ -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
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.
Signed-off-by Laurent Vivier <[email protected]>
Makes a lot of sense.
Alex
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@@ -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
Riku Voipio
AppliedQuoted 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
Signed-off-by Laurent Vivier <[email protected]>--- linux-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)linux-user/main.c +1
-1@@ -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
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.
Signed-off-by Laurent Vivier <[email protected]>
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