summaryrefslogtreecommitdiff
path: root/src/systemc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-11-16 18:01:30 -0800
committerGabe Black <gabeblack@google.com>2018-11-19 21:23:39 +0000
commit6c23320aa4db6ded42f019d2c833fd595f046a2d (patch)
treeab25c3c9de1841084b6ac80a0666188c965c0269 /src/systemc
parent5bfde967dcbbfae884e343425da1fc069a9c4b86 (diff)
downloadgem5-6c23320aa4db6ded42f019d2c833fd595f046a2d.tar.xz
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 Reviewed-on: https://gem5-review.googlesource.com/c/14396 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc')
-rw-r--r--src/systemc/core/sc_main_fiber.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemc/core/sc_main_fiber.hh b/src/systemc/core/sc_main_fiber.hh
index 2e89f11df..e594cc84c 100644
--- a/src/systemc/core/sc_main_fiber.hh
+++ b/src/systemc/core/sc_main_fiber.hh
@@ -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; }