From: Hsuan Hsu Date: Wed, 22 Apr 2020 08:39:56 +0000 (+0800) Subject: cpu-kvm: Initialize _hasKernelIRQChip in the constructor X-Git-Tag: v20.1.0.0~490 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f53eefa397cf67fb00e3a9cdcf2f2452b6b5441c;p=gem5.git cpu-kvm: Initialize _hasKernelIRQChip in the constructor This class member was only correctly set to true when using an in-kernel interrupt controller, but was un-initialized when trying to use a user- space one and would cause trouble. JIRA: https://gem5.atlassian.net/browse/GEM5-663 Change-Id: I71b052c6da7e8790b05a15c07e7933bc4f912785 Signed-off-by: Hsuan Hsu Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30917 Reviewed-by: Giacomo Travaglini Reviewed-by: Andreas Sandberg Maintainer: Giacomo Travaglini Maintainer: Andreas Sandberg Tested-by: kokoro --- diff --git a/src/cpu/kvm/vm.cc b/src/cpu/kvm/vm.cc index 720548c8f..4640ca16f 100644 --- a/src/cpu/kvm/vm.cc +++ b/src/cpu/kvm/vm.cc @@ -294,6 +294,7 @@ KvmVM::KvmVM(KvmVMParams *params) kvm(new Kvm()), system(nullptr), vmFD(kvm->createVM()), started(false), + _hasKernelIRQChip(false), nextVCPUID(0) { maxMemorySlot = kvm->capNumMemSlots();