scons: Simplify the CpuModel class into a function.
The CpuModel class looks like it was originally intended to hold a lot more information that it does now, which is just the name of a CPU, and whether it should be enabled by default. All the built in configs in build_opts already explicitly list a set of CPUs, and CPUs should not, generally speaking, be enabled by default, since they almost always need to be specifically supported by an ISA. This is mutual, since usually ISAs definitions are not quite correct or complete, and this is often exposed by plugging them into different, and/or more complex CPU models which stress those short comings. This change drops the idea of a "default" CPU, and since the only thing being tracked at this point is a list of CPUs, it turns CpuModel() into a simple function which adds a name to a set of supported CPUs. Change-Id: Id7475d5dc8548802b5253f79839da8c76ef4d165 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/48963 Reviewed-by: Hoa Nguyen <hoanguyen@ucdavis.edu> Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -28,5 +28,5 @@
|
||||
|
||||
Import('*')
|
||||
|
||||
CpuModel('AtomicSimpleCPU', default=True)
|
||||
CpuModel('TimingSimpleCPU', default=True)
|
||||
CpuModel('AtomicSimpleCPU')
|
||||
CpuModel('TimingSimpleCPU')
|
||||
|
||||
Reference in New Issue
Block a user