systemc: Increase the stack size for the sc_main fiber to 8MB.
authorGabe Black <gabeblack@google.com>
Sat, 17 Nov 2018 02:01:30 +0000 (18:01 -0800)
committerGabe Black <gabeblack@google.com>
Mon, 19 Nov 2018 21:23:39 +0000 (21:23 +0000)
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
Reviewed-on: https://gem5-review.googlesource.com/c/14396
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/systemc/core/sc_main_fiber.hh

index 2e89f11df58701215f6dadd4ab85fdf5c6b6ba91..e594cc84c0f570496c250efbb15e9f62da6798f0 100644 (file)
@@ -47,6 +47,8 @@ class ScMainFiber : public Fiber
     bool _called = false;
 
   public:
+    ScMainFiber() : Fiber(8 * 1024 * 1024) {}
+
     int argc() { return _argc; }
     const char *const *argv() { return _argv; }
     std::string resultStr() { return _resultStr; }