From: Steve Reinhardt Date: Tue, 15 Jul 2008 18:38:51 +0000 (-0400) Subject: Get rid of useless m5_assert macro. X-Git-Tag: m5_2.0_beta6~80 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa2bb4f7b9ec571a4430da25173fbb76d1b0c8bb;p=gem5.git Get rid of useless m5_assert macro. Its only purpose was to print the cycle number but that already happens in the SIGABRT handler. No one used it anyway. --- diff --git a/src/base/misc.hh b/src/base/misc.hh index 1509ea2d2..6b0025c34 100644 --- a/src/base/misc.hh +++ b/src/base/misc.hh @@ -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__