From b4282af3181ad2a6199065cdc7c0275212a2628b Mon Sep 17 00:00:00 2001 From: Curtis Dunham Date: Thu, 4 Feb 2016 16:57:59 -0600 Subject: [PATCH] ext: fix SST connector Should work with SST 5.1 and trunk as of right now. --- ext/sst/ExtMaster.cc | 8 ++++---- ext/sst/gem5.cc | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ext/sst/ExtMaster.cc b/ext/sst/ExtMaster.cc index 95cbfe7ad..26a6c4a09 100644 --- a/ext/sst/ExtMaster.cc +++ b/ext/sst/ExtMaster.cc @@ -44,6 +44,10 @@ #include "gem5.hh" +#ifdef fatal // gem5 sets this +#undef fatal +#endif + #include #include @@ -53,10 +57,6 @@ #include #include -#ifdef fatal // gem5 sets this -#undef fatal -#endif - using namespace SST; using namespace SST::gem5; using namespace SST::MemHierarchy; diff --git a/ext/sst/gem5.cc b/ext/sst/gem5.cc index 29cea8363..a468e3e82 100644 --- a/ext/sst/gem5.cc +++ b/ext/sst/gem5.cc @@ -69,7 +69,6 @@ #include #include #include -#include using namespace SST; using namespace SST::gem5; @@ -93,7 +92,7 @@ gem5Component::gem5Component(ComponentId_t id, Params ¶ms) : 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()); } @@ -223,7 +222,8 @@ gem5Component::initPython(int argc, char *argv[]) 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);