> I'm trying to call a global function implemented in C++ from a function in 
> the Python __init__.py file, how can I do that? Is that a good example that I 
> can follow?

Just add your function foo() to src/python/swig/core.i and then you
can access it from m5.internal.core.foo()

Most of the functions in core.i are examples for you.
gem5-dev mailing list

Reply via email to