diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-12-19 17:57:45 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-12-19 17:57:45 +0000 |
commit | d63392820b78b2e06147d796ca98f925d69155d0 (patch) | |
tree | bb2df6e7bc6a26ab67593df301f8547b9d6895fd /target/arm/kvm_arm.h | |
parent | bc1b09b3dbcfff24c33e6829aaa08e45dc305204 (diff) | |
download | qemu-d63392820b78b2e06147d796ca98f925d69155d0.zip qemu-d63392820b78b2e06147d796ca98f925d69155d0.tar.gz qemu-d63392820b78b2e06147d796ca98f925d69155d0.tar.bz2 |
target/arm/kvm: Have kvm_arm_sve_get_vls take a ARMCPU argument
Unify the "kvm_arm.h" API: All functions related to ARM vCPUs
take a ARMCPU* argument. Use the CPU() QOM cast macro When
calling the generic vCPU API from "sysemu/kvm.h".
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-id: 20231123183518.64569-6-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/kvm_arm.h')
-rw-r--r-- | target/arm/kvm_arm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/arm/kvm_arm.h b/target/arm/kvm_arm.h index 3abbef0..d6d999b 100644 --- a/target/arm/kvm_arm.h +++ b/target/arm/kvm_arm.h @@ -129,13 +129,13 @@ void kvm_arm_destroy_scratch_host_vcpu(int *fdarray); /** * kvm_arm_sve_get_vls: - * @cs: CPUState + * @cpu: ARMCPU * * Get all the SVE vector lengths supported by the KVM host, setting * the bits corresponding to their length in quadwords minus one * (vq - 1) up to ARM_MAX_VQ. Return the resulting map. */ -uint32_t kvm_arm_sve_get_vls(CPUState *cs); +uint32_t kvm_arm_sve_get_vls(ARMCPU *cpu); /** * kvm_arm_set_cpu_features_from_host: @@ -278,7 +278,7 @@ static inline void kvm_arm_steal_time_finalize(ARMCPU *cpu, Error **errp) g_assert_not_reached(); } -static inline uint32_t kvm_arm_sve_get_vls(CPUState *cs) +static inline uint32_t kvm_arm_sve_get_vls(ARMCPU *cpu) { g_assert_not_reached(); } |