diff --git a/src/cpu/kvm/SConsopts b/src/cpu/kvm/SConsopts index 72f2a2e5e6..31f56c5ac0 100644 --- a/src/cpu/kvm/SConsopts +++ b/src/cpu/kvm/SConsopts @@ -40,7 +40,9 @@ with gem5_scons.Configure(main) as conf: # we rely on exists since version 2.6.36 of the kernel, but somehow # the KVM_API_VERSION does not reflect the change. We test for one of # the types as a fall back. - conf.env['KVM_ISA'] = None + # The default value of KVM_ISA should serialize to a string in the + # C++ header and test False in Scons/Python. + conf.env['KVM_ISA'] = '' if not conf.CheckHeader('linux/kvm.h', '<>'): print("Info: Compatible header file not found, " "disabling KVM support.") diff --git a/src/cpu/static_inst.hh b/src/cpu/static_inst.hh index 2275598ada..af5975ecc1 100644 --- a/src/cpu/static_inst.hh +++ b/src/cpu/static_inst.hh @@ -42,6 +42,7 @@ #ifndef __CPU_STATIC_INST_HH__ #define __CPU_STATIC_INST_HH__ +#include #include #include #include