ruby: Fix missing cxx_header in Switch
authorAndreas Hansson <andreas.hansson@arm.com>
Mon, 7 Jan 2013 18:05:35 +0000 (13:05 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Mon, 7 Jan 2013 18:05:35 +0000 (13:05 -0500)
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.

src/mem/ruby/network/simple/SimpleNetwork.py
src/mem/ruby/network/simple/Switch.hh

index 217dc20ece14107d3cc2010aae80e85794bdf53f..8d0442b7da4fe88272e24c84ac76ccacd2f9cbd0 100644 (file)
@@ -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")
index 05e90f2782a32c143e89dab50459ddbce50821a6..2757e6511c722e7deda64546b7d75f829a149224 100644 (file)
@@ -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"