mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/arm: Convert sve from feature bit to aa64pfr0 test
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20181016223115.24100-8-richard.henderson@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
09cbd50198
commit
cd208a1c39
8 changed files with 37 additions and 16 deletions
|
@ -314,7 +314,7 @@ static int target_restore_sigframe(CPUARMState *env,
|
|||
break;
|
||||
|
||||
case TARGET_SVE_MAGIC:
|
||||
if (arm_feature(env, ARM_FEATURE_SVE)) {
|
||||
if (cpu_isar_feature(aa64_sve, arm_env_get_cpu(env))) {
|
||||
vq = (env->vfp.zcr_el[1] & 0xf) + 1;
|
||||
sve_size = QEMU_ALIGN_UP(TARGET_SVE_SIG_CONTEXT_SIZE(vq), 16);
|
||||
if (!sve && size == sve_size) {
|
||||
|
@ -433,7 +433,7 @@ static void target_setup_frame(int usig, struct target_sigaction *ka,
|
|||
&layout);
|
||||
|
||||
/* SVE state needs saving only if it exists. */
|
||||
if (arm_feature(env, ARM_FEATURE_SVE)) {
|
||||
if (cpu_isar_feature(aa64_sve, arm_env_get_cpu(env))) {
|
||||
vq = (env->vfp.zcr_el[1] & 0xf) + 1;
|
||||
sve_size = QEMU_ALIGN_UP(TARGET_SVE_SIG_CONTEXT_SIZE(vq), 16);
|
||||
sve_ofs = alloc_sigframe_space(sve_size, &layout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue