syscall: use spaces in tile personality names, de-duplicate definition

As Chris Metcalf, the author of v4.7-40-g0b99a8a, told in private, there
is no strong reason for having tile's personality name different from
personality names on other architectures, so let's use spaces instead of
dashes here. And, while we are here, remove duplication of personality
name definitions for various architectures.

* syscall.c (update_personality) [defined TILE]: Change dashes to spaces
in personality names.
This commit is contained in:
Eugene Syromyatnikov
2017-08-27 01:36:30 +02:00
committed by Dmitry V. Levin
parent bec0ab989d
commit dbf939d19d

View File

@ -308,16 +308,12 @@ update_personality(struct tcb *tcp, unsigned int personality)
tcp->currpers = personality;
# undef PERSONALITY_NAMES
# if defined POWERPC64
# if defined POWERPC64 || defined AARCH64 || defined TILE
# define PERSONALITY_NAMES {"64 bit", "32 bit"}
# elif defined X86_64
# define PERSONALITY_NAMES {"64 bit", "32 bit", "x32"}
# elif defined X32
# define PERSONALITY_NAMES {"x32", "32 bit"}
# elif defined AARCH64
# define PERSONALITY_NAMES {"64 bit", "32 bit"}
# elif defined TILE
# define PERSONALITY_NAMES {"64-bit", "32-bit"}
# endif
# ifdef PERSONALITY_NAMES
if (!qflag) {