summaryrefslogtreecommitdiff
path: root/src/dev/net/SConscript
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-03-06 17:29:43 -0800
committerGabe Black <gabeblack@google.com>2019-03-15 18:12:58 +0000
commitf5ba0d66459c1c035d4613376d1d39af08e483de (patch)
tree2deb1b27c75279df5467d6035d27a0007380d01f /src/dev/net/SConscript
parent94a00fb6d9270990cd04ae293556297a3c2f2563 (diff)
downloadgem5-f5ba0d66459c1c035d4613376d1d39af08e483de.tar.xz
dev: Turn EtherObject into an interface class.
This class used to drive from SimObject so that it could be derived from to get both the interface and SimObject while still using single inheritance. With this change, EtherObject is now just an interface class with only one pure virtual function which can be inherited alongside SimObject. This makes it more flexible so that it can be used in places where you might want a different inheritance hierarchy, for instance to inherit from MemObject. Change-Id: I0f07664d104eed012cf4ce6e30c416ada19505a7 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17028 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/dev/net/SConscript')
-rw-r--r--src/dev/net/SConscript1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dev/net/SConscript b/src/dev/net/SConscript
index 908dd44e6..0bb6bbf01 100644
--- a/src/dev/net/SConscript
+++ b/src/dev/net/SConscript
@@ -45,6 +45,7 @@
Import('*')
SimObject('Ethernet.py')
+Source('python.cc', add_tags='python')
# Basic Ethernet infrastructure
Source('etherbus.cc')