#include "gem5.hh"
+#ifdef fatal // gem5 sets this
+#undef fatal
+#endif
+
#include <sst_config.h>
#include <mem/packet.hh>
#include <sst/core/link.h>
#include <sst/elements/memHierarchy/memNIC.h>
-#ifdef fatal // gem5 sets this
-#undef fatal
-#endif
-
using namespace SST;
using namespace SST::gem5;
using namespace SST::MemHierarchy;
#include <sst/core/params.h>
#include <sst/core/link.h>
#include <sst/core/timeConverter.h>
-#include <sst/core/debug.h>
using namespace SST;
using namespace SST::gem5;
std::string cmd = params.find_string("cmd", "");
if (cmd.empty()) {
- _abort(gem5Component, "Component %s must have a 'cmd' parameter.\n",
+ dbg.fatal(CALL_INFO, -1, "Component %s must have a 'cmd' parameter.\n",
getName().c_str());
}
int ret = initM5Python();
if (ret != 0) {
- _abort(gem5Component, "Python failed to initialize. Code: %d\n", ret);
+ dbg.fatal(CALL_INFO, -1, "Python failed to initialize. Code: %d\n",
+ ret);
}
PySys_SetArgv(argc, argv);