changeset 7eb7f0f5e79f in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=7eb7f0f5e79f
summary: Fix various SWIG warnings

diffstat:

4 files changed, 2 insertions(+), 2 deletions(-)
src/arch/mips/MipsTLB.py |    1 +
src/arch/x86/X86TLB.py   |    1 -
src/python/swig/event.i  |    1 -
src/python/swig/range.i  |    1 +

diffs (53 lines):

diff -r ca74f6845b27 -r 7eb7f0f5e79f src/arch/mips/MipsTLB.py
--- a/src/arch/mips/MipsTLB.py  Sat Jun 14 12:10:50 2008 -0700
+++ b/src/arch/mips/MipsTLB.py  Sat Jun 14 12:57:21 2008 -0700
@@ -33,10 +33,8 @@ from m5.params import *
 from m5.params import *
 
 class MipsTLB(SimObject):
+    type = 'MipsTLB'
     abstract = True
-    type = 'MipsTLB'
-    cxx_namespace = 'MipsISA'
-    cxx_class = 'TLB'
     size = Param.Int("TLB size")
 
 class MipsDTB(MipsTLB):
diff -r ca74f6845b27 -r 7eb7f0f5e79f src/arch/x86/X86TLB.py
--- a/src/arch/x86/X86TLB.py    Sat Jun 14 12:10:50 2008 -0700
+++ b/src/arch/x86/X86TLB.py    Sat Jun 14 12:57:21 2008 -0700
@@ -69,8 +69,6 @@ if build_env['FULL_SYSTEM']:
 
 class X86TLB(SimObject):
     type = 'X86TLB'
-    cxx_namespace = 'X86ISA'
-    cxx_class = 'TLB'
     abstract = True
     size = Param.Int("TLB size")
     if build_env['FULL_SYSTEM']:
diff -r ca74f6845b27 -r 7eb7f0f5e79f src/python/swig/event.i
--- a/src/python/swig/event.i   Sat Jun 14 12:10:50 2008 -0700
+++ b/src/python/swig/event.i   Sat Jun 14 12:57:21 2008 -0700
@@ -44,8 +44,8 @@
 
 void create(PyObject *object, Tick when);
 
-class Event;
-class CountedDrainEvent : public Event {
+class CountedDrainEvent
+{
   public:
     void setCount(int _count);
 };
diff -r ca74f6845b27 -r 7eb7f0f5e79f src/python/swig/range.i
--- a/src/python/swig/range.i   Sat Jun 14 12:10:50 2008 -0700
+++ b/src/python/swig/range.i   Sat Jun 14 12:57:21 2008 -0700
@@ -28,6 +28,8 @@
  * Authors: Nathan Binkert
  */
 
+%rename(assign) *::operator=;
+
 %include "base/range.hh"
 %include "sim/host.hh"
 
_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to