Fix various SWIG warnings

This commit is contained in:
Nathan Binkert 2008-06-14 12:57:21 -07:00
parent 7a58b5a38a
commit ce43e46576
4 changed files with 5 additions and 7 deletions

View file

@ -33,10 +33,8 @@ from m5.SimObject import SimObject
from m5.params import * from m5.params import *
class MipsTLB(SimObject): class MipsTLB(SimObject):
abstract = True
type = 'MipsTLB' type = 'MipsTLB'
cxx_namespace = 'MipsISA' abstract = True
cxx_class = 'TLB'
size = Param.Int("TLB size") size = Param.Int("TLB size")
class MipsDTB(MipsTLB): class MipsDTB(MipsTLB):

View file

@ -69,8 +69,6 @@ if build_env['FULL_SYSTEM']:
class X86TLB(SimObject): class X86TLB(SimObject):
type = 'X86TLB' type = 'X86TLB'
cxx_namespace = 'X86ISA'
cxx_class = 'TLB'
abstract = True abstract = True
size = Param.Int("TLB size") size = Param.Int("TLB size")
if build_env['FULL_SYSTEM']: if build_env['FULL_SYSTEM']:

View file

@ -44,8 +44,8 @@
void create(PyObject *object, Tick when); void create(PyObject *object, Tick when);
class Event; class CountedDrainEvent
class CountedDrainEvent : public Event { {
public: public:
void setCount(int _count); void setCount(int _count);
}; };

View file

@ -28,6 +28,8 @@
* Authors: Nathan Binkert * Authors: Nathan Binkert
*/ */
%rename(assign) *::operator=;
%include "base/range.hh" %include "base/range.hh"
%include "sim/host.hh" %include "sim/host.hh"