From 68e4eeb53e61ad3cbc7b00bb1ca70004e64c042b Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 6 Jan 2024 16:16:14 -0500 Subject: [PATCH] Add predicted stack overflow warning (#4799). --- include/verilated.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/verilated.cpp b/include/verilated.cpp index 1a32e2b1d..c6c5c7321 100644 --- a/include/verilated.cpp +++ b/include/verilated.cpp @@ -3015,7 +3015,7 @@ void Verilated::stackCheck(QData needSize) VL_MT_UNSAFE { // if the user follows the suggestions if (VL_UNLIKELY(haveSize && needSize && haveSize < (needSize + needSize / 2))) { VL_PRINTF_MT("%%Warning: System has stack size %" PRIu64 " kb" - " which may be too small; suggest at least 'ulimit -c %" PRIu64 "'\n", + " which may be too small; suggest 'ulimit -c %" PRIu64 "' or larger\n", haveSize / 1024, (needSize * 2) / 1024); } #else