summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network/simple
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-01-07 13:05:35 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2013-01-07 13:05:35 -0500
commitce5fc494e3f26ef7e7c0c3b72eaa4a93a2d31b73 (patch)
treebf8bc8f2483cd38b10da99476e8255cfbfc9b13c /src/mem/ruby/network/simple
parent4731979ab092e6324e563d5738387e6ce21c3812 (diff)
downloadgem5-ce5fc494e3f26ef7e7c0c3b72eaa4a93a2d31b73.tar.xz
ruby: Fix missing cxx_header in Switch
This patch addresses a warning related to the swig interface generation for the Switch class. The cxx_header is now specified correctly, and the header in question has got a few includes added to make it all compile.
Diffstat (limited to 'src/mem/ruby/network/simple')
-rw-r--r--src/mem/ruby/network/simple/SimpleNetwork.py2
-rw-r--r--src/mem/ruby/network/simple/Switch.hh2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/mem/ruby/network/simple/SimpleNetwork.py b/src/mem/ruby/network/simple/SimpleNetwork.py
index 217dc20ec..8d0442b7d 100644
--- a/src/mem/ruby/network/simple/SimpleNetwork.py
+++ b/src/mem/ruby/network/simple/SimpleNetwork.py
@@ -42,6 +42,6 @@ class SimpleNetwork(RubyNetwork):
class Switch(BasicRouter):
type = 'Switch'
- cxx_class = 'Switch'
+ cxx_header = 'mem/ruby/network/simple/Switch.hh'
virt_nets = Param.Int(Parent.number_of_virtual_networks,
"number of virtual networks")
diff --git a/src/mem/ruby/network/simple/Switch.hh b/src/mem/ruby/network/simple/Switch.hh
index 05e90f278..2757e6511 100644
--- a/src/mem/ruby/network/simple/Switch.hh
+++ b/src/mem/ruby/network/simple/Switch.hh
@@ -42,6 +42,8 @@
#include <iostream>
#include <vector>
+#include "mem/packet.hh"
+#include "mem/ruby/common/TypeDefines.hh"
#include "mem/ruby/network/BasicRouter.hh"
#include "params/Switch.hh"