Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/14396

Change subject: systemc: Increase the stack size for the sc_main fiber to 8MB.
......................................................................

systemc: Increase the stack size for the sc_main fiber to 8MB.

This is a reasonable size for a stack, and the default size for a stack
on Linux as determined by some quick Googling. The sc_main fiber would
normally use the primary program stack if run under the standard
systemc implementation, and so might expect to have more room to play
with.

Change-Id: Ie12344939e7b249da203630ebc7dc773a387d716
---
M src/systemc/core/sc_main_fiber.hh
1 file changed, 2 insertions(+), 0 deletions(-)



diff --git a/src/systemc/core/sc_main_fiber.hh b/src/systemc/core/sc_main_fiber.hh
index 2e89f11..e594cc8 100644
--- a/src/systemc/core/sc_main_fiber.hh
+++ b/src/systemc/core/sc_main_fiber.hh
@@ -47,6 +47,8 @@
     bool _called = false;

   public:
+    ScMainFiber() : Fiber(8 * 1024 * 1024) {}
+
     int argc() { return _argc; }
     const char *const *argv() { return _argv; }
     std::string resultStr() { return _resultStr; }

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/14396
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ie12344939e7b249da203630ebc7dc773a387d716
Gerrit-Change-Number: 14396
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to