changeset 8f8c911ab5a7 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=8f8c911ab5a7
description:
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:
src/mem/ruby/network/simple/SimpleNetwork.py | 2 +-
src/mem/ruby/network/simple/Switch.hh | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r b958d9fa867c -r 8f8c911ab5a7
src/mem/ruby/network/simple/SimpleNetwork.py
--- a/src/mem/ruby/network/simple/SimpleNetwork.py Mon Jan 07 13:05:35
2013 -0500
+++ b/src/mem/ruby/network/simple/SimpleNetwork.py Mon Jan 07 13:05:35
2013 -0500
@@ -42,6 +42,6 @@
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 -r b958d9fa867c -r 8f8c911ab5a7 src/mem/ruby/network/simple/Switch.hh
--- a/src/mem/ruby/network/simple/Switch.hh Mon Jan 07 13:05:35 2013 -0500
+++ b/src/mem/ruby/network/simple/Switch.hh Mon Jan 07 13:05:35 2013 -0500
@@ -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"
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev