Searched hist:10002 (Results 1 - 1 of 1) sorted by relevance
/gem5/src/python/m5/ | ||
H A D | SimObject.py | diff 10002:11a8fc907e5d Fri Jan 03 20:08:00 EST 2014 Steve Reinhardt <steve.reinhardt@amd.com> python: provide better error message for wrapped C++ methods If you successfully export a C++ SimObject method, but try to invoke it from Python before the C++ object is created, you get a confusing error that says the attribute does not exist, making you question whether you successfully exported the method at all. In reality, your only problem is that you're calling the method too soon. This patch enhances the error message to give you a better clue. |
Completed in 28 milliseconds