diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-04-04 11:12:38 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-06-28 14:27:59 +0200 |
commit | cf43b5b69c0f4acee52e3648b88f4a0bf3de770b (patch) | |
tree | ce8616dd58e8dafc88eb07ab6c4c5c6b14db5cf4 /target/arm/cpu.h | |
parent | 94522562f68043c0420795c9b4ec8f1d6b40e2fc (diff) | |
download | qemu-cf43b5b69c0f4acee52e3648b88f4a0bf3de770b.zip qemu-cf43b5b69c0f4acee52e3648b88f4a0bf3de770b.tar.gz qemu-cf43b5b69c0f4acee52e3648b88f4a0bf3de770b.tar.bz2 |
target/arm: Restrict KVM-specific fields from ArchCPU
These fields shouldn't be accessed when KVM is not available.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230405160454.97436-8-philmd@linaro.org>
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r-- | target/arm/cpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 00e675f..4d6c0f9 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -961,6 +961,7 @@ struct ArchCPU { */ uint32_t kvm_target; +#ifdef CONFIG_KVM /* KVM init features for this CPU */ uint32_t kvm_init_features[7]; @@ -973,6 +974,7 @@ struct ArchCPU { /* KVM steal time */ OnOffAuto kvm_steal_time; +#endif /* CONFIG_KVM */ /* Uniprocessor system with MP extensions */ bool mp_is_up; |