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.
This commit is contained in:
parent
4731979ab0
commit
ce5fc494e3
2 changed files with 3 additions and 1 deletions
|
@ -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")
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue