projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e7ddce
)
Get rid of useless m5_assert macro.
author
Steve Reinhardt
<stever@gmail.com>
Tue, 15 Jul 2008 18:38:51 +0000
(14:38 -0400)
committer
Steve 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
patch
|
blob
|
history
diff --git
a/src/base/misc.hh
b/src/base/misc.hh
index 1509ea2d2738a775b8080dfe31b23f9055fd4b71..6b0025c3464cf3ea0ee6696c4651880b8b9eccc6 100644
(file)
--- 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__