changeset 17c8cf9907e1 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=17c8cf9907e1
description:
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:
src/dev/SConscript | 9 +++++----
src/dev/baddev.cc | 4 ----
2 files changed, 5 insertions(+), 8 deletions(-)
diffs (56 lines):
diff -r 7867c5f28b90 -r 17c8cf9907e1 src/dev/SConscript
--- a/src/dev/SConscript Tue Feb 18 05:50:58 2014 -0500
+++ b/src/dev/SConscript Tue Feb 18 05:50:59 2014 -0500
@@ -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('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('IdeCtrl')
DebugFlag('IdeDisk')
DebugFlag('Intel8254Timer')
-DebugFlag('IsaFake')
DebugFlag('MC146818')
DebugFlag('PCIDEV')
DebugFlag('PciConfigAll')
diff -r 7867c5f28b90 -r 17c8cf9907e1 src/dev/baddev.cc
--- a/src/dev/baddev.cc Tue Feb 18 05:50:58 2014 -0500
+++ b/src/dev/baddev.cc Tue Feb 18 05:50:59 2014 -0500
@@ -32,14 +32,10 @@
* BadDevice implemenation
*/
-#include <deque>
#include <string>
-#include <vector>
#include "base/trace.hh"
-#include "config/the_isa.hh"
#include "dev/baddev.hh"
-#include "mem/port.hh"
#include "params/BadDevice.hh"
#include "sim/system.hh"
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev