linux-user: Rename sve prctls

Add "sve" to the sve prctl functions, to distinguish
them from the coming "sme" prctls with similar names.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220708151540.18136-42-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Richard Henderson 2022-07-08 20:45:36 +05:30 committed by Peter Maydell
parent 78fd56ba13
commit fd72f5d0ba
2 changed files with 10 additions and 10 deletions

View File

@ -6,7 +6,7 @@
#ifndef AARCH64_TARGET_PRCTL_H #ifndef AARCH64_TARGET_PRCTL_H
#define AARCH64_TARGET_PRCTL_H #define AARCH64_TARGET_PRCTL_H
static abi_long do_prctl_get_vl(CPUArchState *env) static abi_long do_prctl_sve_get_vl(CPUArchState *env)
{ {
ARMCPU *cpu = env_archcpu(env); ARMCPU *cpu = env_archcpu(env);
if (cpu_isar_feature(aa64_sve, cpu)) { if (cpu_isar_feature(aa64_sve, cpu)) {
@ -14,9 +14,9 @@ static abi_long do_prctl_get_vl(CPUArchState *env)
} }
return -TARGET_EINVAL; return -TARGET_EINVAL;
} }
#define do_prctl_get_vl do_prctl_get_vl #define do_prctl_sve_get_vl do_prctl_sve_get_vl
static abi_long do_prctl_set_vl(CPUArchState *env, abi_long arg2) static abi_long do_prctl_sve_set_vl(CPUArchState *env, abi_long arg2)
{ {
/* /*
* We cannot support either PR_SVE_SET_VL_ONEXEC or PR_SVE_VL_INHERIT. * We cannot support either PR_SVE_SET_VL_ONEXEC or PR_SVE_VL_INHERIT.
@ -47,7 +47,7 @@ static abi_long do_prctl_set_vl(CPUArchState *env, abi_long arg2)
} }
return -TARGET_EINVAL; return -TARGET_EINVAL;
} }
#define do_prctl_set_vl do_prctl_set_vl #define do_prctl_sve_set_vl do_prctl_sve_set_vl
static abi_long do_prctl_reset_keys(CPUArchState *env, abi_long arg2) static abi_long do_prctl_reset_keys(CPUArchState *env, abi_long arg2)
{ {

View File

@ -6362,11 +6362,11 @@ static abi_long do_prctl_inval1(CPUArchState *env, abi_long arg2)
#ifndef do_prctl_set_fp_mode #ifndef do_prctl_set_fp_mode
#define do_prctl_set_fp_mode do_prctl_inval1 #define do_prctl_set_fp_mode do_prctl_inval1
#endif #endif
#ifndef do_prctl_get_vl #ifndef do_prctl_sve_get_vl
#define do_prctl_get_vl do_prctl_inval0 #define do_prctl_sve_get_vl do_prctl_inval0
#endif #endif
#ifndef do_prctl_set_vl #ifndef do_prctl_sve_set_vl
#define do_prctl_set_vl do_prctl_inval1 #define do_prctl_sve_set_vl do_prctl_inval1
#endif #endif
#ifndef do_prctl_reset_keys #ifndef do_prctl_reset_keys
#define do_prctl_reset_keys do_prctl_inval1 #define do_prctl_reset_keys do_prctl_inval1
@ -6431,9 +6431,9 @@ static abi_long do_prctl(CPUArchState *env, abi_long option, abi_long arg2,
case PR_SET_FP_MODE: case PR_SET_FP_MODE:
return do_prctl_set_fp_mode(env, arg2); return do_prctl_set_fp_mode(env, arg2);
case PR_SVE_GET_VL: case PR_SVE_GET_VL:
return do_prctl_get_vl(env); return do_prctl_sve_get_vl(env);
case PR_SVE_SET_VL: case PR_SVE_SET_VL:
return do_prctl_set_vl(env, arg2); return do_prctl_sve_set_vl(env, arg2);
case PR_PAC_RESET_KEYS: case PR_PAC_RESET_KEYS:
if (arg3 || arg4 || arg5) { if (arg3 || arg4 || arg5) {
return -TARGET_EINVAL; return -TARGET_EINVAL;