scons: Add sim_object and enums arguments to SimObject().

This will explicitly declare what SimObject and Enum types need to be set
up in C++, which will make importing all the SimObject modules during
the setup phase of SCons uneccessary.

Change-Id: Id2d7603daf33b236ceaa0789e2f089f589d34e62
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/49406
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Gabe Black
2021-08-15 22:07:27 -07:00
parent 60e55ecef8
commit 1c233ee9d2
79 changed files with 416 additions and 262 deletions

View File

@@ -28,7 +28,8 @@
Import('*')
SimObject('Device.py')
SimObject('Device.py', sim_objects=[
'PioDevice', 'BasicPioDevice', 'DmaDevice', 'DmaVirtDevice', 'IsaFake'])
Source('io_device.cc')
Source('isa_fake.cc')
Source('dma_device.cc')
@@ -40,13 +41,13 @@ Source('intpin.cc')
DebugFlag('IsaFake')
DebugFlag('DMA')
SimObject('Platform.py')
SimObject('Platform.py', sim_objects=['Platform'])
Source('platform.cc')
if env['TARGET_ISA'] == 'null':
Return()
SimObject('BadDevice.py')
SimObject('BadDevice.py', sim_objects=['BadDevice'])
Source('baddev.cc')
Source('intel_8254_timer.cc')