Get rid of useless m5_assert macro.
authorSteve Reinhardt <stever@gmail.com>
Tue, 15 Jul 2008 18:38:51 +0000 (14:38 -0400)
committerSteve Reinhardt <stever@gmail.com>
Tue, 15 Jul 2008 18:38:51 +0000 (14:38 -0400)
Its only purpose was to print the cycle number but that already
happens in the SIGABRT handler.  No one used it anyway.

src/base/misc.hh

index 1509ea2d2738a775b8080dfe31b23f9055fd4b71..6b0025c3464cf3ea0ee6696c4651880b8b9eccc6 100644 (file)
@@ -113,13 +113,4 @@ __warn(const char *func, const char *file, int line, const std::string &format,
         }                                           \
     } while (0)
 
-//
-// assert() that prints out the current cycle
-//
-#define m5_assert(TEST) do {                                            \
-    if (!(TEST))                                                        \
-        ccprintf(std::cerr, "Assertion failure, curTick = %d\n", curTick); \
-    assert(TEST);                                                       \
-} while (0)
-
 #endif // __MISC_HH__