scons: Stop building the big monolithic swigged params module
kill params.i and create a separate .i for each object (param, enums, etc.)
This commit is contained in:
@@ -32,6 +32,9 @@
|
||||
#include "base/inet.hh"
|
||||
%}
|
||||
|
||||
%import "stdint.i"
|
||||
%import "std_string.i"
|
||||
|
||||
namespace Net {
|
||||
struct EthAddr
|
||||
{
|
||||
|
||||
@@ -28,10 +28,18 @@
|
||||
* Authors: Nathan Binkert
|
||||
*/
|
||||
|
||||
%rename(assign) *::operator=;
|
||||
%module(package="m5.internal") range
|
||||
|
||||
%include "base/range.hh"
|
||||
%{
|
||||
#include "base/range.hh"
|
||||
#include "base/types.hh"
|
||||
%}
|
||||
|
||||
%include "stdint.i"
|
||||
%include "base/types.hh"
|
||||
|
||||
%rename(assign) *::operator=;
|
||||
%include "base/range.hh"
|
||||
|
||||
%template(AddrRange) Range<Addr>;
|
||||
%template(TickRange) Range<Tick>;
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
* Authors: Nathan Binkert
|
||||
*/
|
||||
|
||||
%module sim_object
|
||||
|
||||
%{
|
||||
#include "python/swig/pyobject.hh"
|
||||
%}
|
||||
@@ -39,6 +37,7 @@
|
||||
%include "std_string.i"
|
||||
|
||||
%include "base/types.hh"
|
||||
%include "sim/sim_object_params.hh"
|
||||
|
||||
class BaseCPU;
|
||||
|
||||
|
||||
@@ -28,9 +28,12 @@
|
||||
* Authors: Nathan Binkert
|
||||
*/
|
||||
|
||||
%module sim_object
|
||||
%{
|
||||
#include "sim/system.hh"
|
||||
%}
|
||||
|
||||
%include "enums/MemoryMode.hh"
|
||||
%import "python/swig/sim_object.i"
|
||||
%import "enums/MemoryMode.hh"
|
||||
|
||||
class System : public SimObject
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user