config: Move KVM CPU checking to CpuConfig helper module
authorAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 28 Aug 2018 10:56:55 +0000 (11:56 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 3 Sep 2018 16:05:46 +0000 (16:05 +0000)
commit215d5e4096cb4b06aa7fd5e9936440b28d8fe034
tree280a6ea01b449ac3592157baadd61382025b7edc
parent2b4b94d0556c2d03172ebff63f7fc502c3c26ff8
config: Move KVM CPU checking to CpuConfig helper module

Both se.py and fs.py need to check if a CPU is a KVM CPU. This is
somewhat involved since CPUs can be disabled at compile time. Enable
better code reuse by moving it to the CpuConfig module.

Change-Id: I47b1512ecb62e757399a407a0e41be83b9f83be3
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/12418
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
configs/common/CpuConfig.py
configs/example/fs.py
configs/example/se.py