From f53eefa397cf67fb00e3a9cdcf2f2452b6b5441c Mon Sep 17 00:00:00 2001 From: Hsuan Hsu Date: Wed, 22 Apr 2020 16:39:56 +0800 Subject: [PATCH] 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 --- src/cpu/kvm/vm.cc | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.30.2