diff options
author | Nathan Binkert <binkertn@umich.edu> | 2007-03-06 11:13:43 -0800 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2007-03-06 11:13:43 -0800 |
commit | d55b25cde6d2c072885a2c468d209fb18d6628e6 (patch) | |
tree | 391c4e66a69818a95037a5f2adccb2e8e0c84648 /src/python/swig | |
parent | f800fddcea850822efee031b9b904280639da4c6 (diff) | |
download | gem5-d55b25cde6d2c072885a2c468d209fb18d6628e6.tar.xz |
Move all of the parameters of the Root SimObject so they are
directly configured by python. Move stuff from root.(cc|hh) to
core.(cc|hh) since it really belogs there now.
In the process, simplify how ticks are used in the python code.
--HG--
extra : convert_revision : cf82ee1ea20f9343924f30bacc2a38d4edee8df3
Diffstat (limited to 'src/python/swig')
-rw-r--r-- | src/python/swig/core.i | 8 | ||||
-rw-r--r-- | src/python/swig/event.i | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/python/swig/core.i b/src/python/swig/core.i index 116890763..3edfa4c7e 100644 --- a/src/python/swig/core.i +++ b/src/python/swig/core.i @@ -41,15 +41,23 @@ extern const char *compileDate; %} +%include "stdint.i" %include "std_string.i" +%include "sim/host.hh" void setOutputDir(const std::string &dir); +void setOutputFile(const std::string &file); void loadIniFile(PyObject *); void SimStartup(); void doExitCleanup(); char *compileDate; +void setClockFrequency(Tick ticksPerSecond); + +%immutable curTick; +Tick curTick; + %wrapper %{ // fix up module name to reflect the fact that it's inside the m5 package #undef SWIG_name diff --git a/src/python/swig/event.i b/src/python/swig/event.i index 51d7d89f0..9a2093c99 100644 --- a/src/python/swig/event.i +++ b/src/python/swig/event.i @@ -53,9 +53,6 @@ class CountedDrainEvent : public Event { CountedDrainEvent *createCountedDrain(); void cleanupCountedDrain(Event *drain_event); -%immutable curTick; -Tick curTick; - // minimal definition of SimExitEvent interface to wrap class SimLoopExitEvent { public: @@ -74,8 +71,6 @@ class SimLoopExitEvent { SimLoopExitEvent *simulate(Tick num_cycles = MaxTick); void exitSimLoop(const std::string &message, int exit_code); -Tick curTick; - %wrapper %{ // fix up module name to reflect the fact that it's inside the m5 package #undef SWIG_name |