misc: Rename misc.(hh|cc) to logging.(hh|cc)
[gem5.git] / src / gpu-compute / brig_object.cc
index 7cc9b7cc4c646d640490d25ed96eda5226593cb5..6211598d4167754cb5b38ebc52ea090febd14922 100644 (file)
@@ -45,7 +45,7 @@
 #include <cstdlib>
 
 #include "arch/hsail/Brig.h"
-#include "base/misc.hh"
+#include "base/logging.hh"
 #include "base/trace.hh"
 #include "debug/BRIG.hh"
 #include "debug/HSAILObject.hh"
@@ -176,8 +176,10 @@ BrigObject::processDirectives(const BrigBase *dirPtr, const BrigBase *endPtr,
                         p->firstCodeBlockEntry, p->nextModuleEntry);
 
                 if (p->firstCodeBlockEntry != p->nextModuleEntry) {
-                    panic("Function calls are not fully supported yet!!: %s\n",
-                          getString(p->name));
+                    // Function calls are not supported. We allow the BRIG
+                    // object file to create stubs, but the function calls will
+                    // not work properly if the application makes use of them.
+                    warn("HSA function invocations are unsupported.\n");
 
                     const char *name = getString(p->name);
 
@@ -199,8 +201,8 @@ BrigObject::processDirectives(const BrigBase *dirPtr, const BrigBase *endPtr,
                         panic("Multiple definition of Function!!: %s\n",
                               getString(p->name));
                     }
-
                 }
+
                 nextDirPtr = getCodeSectionEntry(p->nextModuleEntry);
             }
             break;