summaryrefslogtreecommitdiff
path: root/src/dev/SConscript
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2014-02-18 05:50:59 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2014-02-18 05:50:59 -0500
commitf0ea79c41f6c6b00b976b6fe67ac350a1852022a (patch)
treeca26eef5a8fb98b538f282fb5268ed15c9882582 /src/dev/SConscript
parentffc838cd0062a9c0c8c4d09f8355829ec0ab16ca (diff)
downloadgem5-f0ea79c41f6c6b00b976b6fe67ac350a1852022a.tar.xz
dev: Include basic devices in NULL ISA build
This patch enbles use of the basic PIO devices as part of the NULL build. Although it might seem counter intuitive to have a PIO device without being able to execute a driver, this change enables us to break a device class hierarchy into an ISA-agnostic part, and an ISA-specific part, without requiring multiple-inheritance. The ISA-agnostic base class is a PIO device, but does not make use of the port.
Diffstat (limited to 'src/dev/SConscript')
-rw-r--r--src/dev/SConscript9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dev/SConscript b/src/dev/SConscript
index 1bcddb6ee..8596c2f74 100644
--- a/src/dev/SConscript
+++ b/src/dev/SConscript
@@ -31,12 +31,16 @@
Import('*')
+SimObject('Device.py')
+Source('io_device.cc')
+Source('isa_fake.cc')
+DebugFlag('IsaFake')
+
if env['TARGET_ISA'] == 'null':
Return()
SimObject('BadDevice.py')
SimObject('CopyEngine.py')
-SimObject('Device.py')
SimObject('DiskImage.py')
SimObject('Ethernet.py')
SimObject('Ide.py')
@@ -61,8 +65,6 @@ Source('i8254xGBe.cc')
Source('ide_ctrl.cc')
Source('ide_disk.cc')
Source('intel_8254_timer.cc')
-Source('io_device.cc')
-Source('isa_fake.cc')
Source('mc146818.cc')
Source('ns_gige.cc')
Source('pciconfigall.cc')
@@ -92,7 +94,6 @@ DebugFlag('EthernetSM')
DebugFlag('IdeCtrl')
DebugFlag('IdeDisk')
DebugFlag('Intel8254Timer')
-DebugFlag('IsaFake')
DebugFlag('MC146818')
DebugFlag('PCIDEV')
DebugFlag('PciConfigAll')