scons: Simplify kvm architecture compatibility check.
authorGabe Black <gabe.black@gmail.com>
Sun, 7 Feb 2021 11:45:11 +0000 (03:45 -0800)
committerGabe Black <gabe.black@gmail.com>
Thu, 11 Feb 2021 19:33:24 +0000 (19:33 +0000)
commit642767e8ef26ccd0cfacbfe45bdaef004540cd40
treefd0cbc03514c58af329b9fbc7d57c9cb8caddd56
parente375bbba4e159f14a5ac6582aa1e4abbcaac5d54
scons: Simplify kvm architecture compatibility check.

The original implementation had a function we'd call back into later
which checked if a given ISA has KVM support on the current host.
Instead, this change reverse that and statically figures out which
single target ISA could possibly run under KVM on this host. Then later,
we can just check if the ISA we're trying to build is that one.

Change-Id: I3e7e06180983dfcc4611181718eb5d6210844d36
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40870
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
SConstruct