diff options
author | Nathan Binkert <binkertn@umich.edu> | 2006-11-13 12:20:08 -0800 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2006-11-13 12:20:08 -0800 |
commit | afed455e777348596db9ff9786d6dae03a956c89 (patch) | |
tree | e49f414f9c4e4d31c5c47922b9818b098c7ad038 /src/python/swig/debug.i | |
parent | 2370e638cec993a2f676c7e5997f4223c995be29 (diff) | |
download | gem5-afed455e777348596db9ff9786d6dae03a956c89.tar.xz |
Expose debugBreakCycle through swig and get rid of
the Debug param context
--HG--
extra : convert_revision : 40e9dcfa9faedbe0c90a43f908f20a7c14ded6a4
Diffstat (limited to 'src/python/swig/debug.i')
-rw-r--r-- | src/python/swig/debug.i | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/python/swig/debug.i b/src/python/swig/debug.i new file mode 100644 index 000000000..8da2974ca --- /dev/null +++ b/src/python/swig/debug.i @@ -0,0 +1,19 @@ +%module debug + +%{ +// include these files when compiling debug_wrap.cc +#include "sim/host.hh" +%} + +%include "stdint.i" +%include "sim/host.hh" + +%inline %{ +extern void schedBreakCycle(Tick when); +%} + +%wrapper %{ +// fix up module name to reflect the fact that it's inside the m5 package +#undef SWIG_name +#define SWIG_name "m5.internal._debug" +%} |