diff options
author | Alec Roelke <ar4jc@virginia.edu> | 2017-12-13 19:00:11 -0500 |
---|---|---|
committer | Alec Roelke <ar4jc@virginia.edu> | 2017-12-14 16:08:55 +0000 |
commit | e43d24590329453a8fbf14850a3884b3919b74aa (patch) | |
tree | 7bd7693973e75ddd9711625cf401e4dcf7f80cc1 /src | |
parent | 5c41076bd7610d03431fd0dd89bd0fdc7f30d6bd (diff) | |
download | gem5-e43d24590329453a8fbf14850a3884b3919b74aa.tar.xz |
arch-riscv: Increase maximum stack size
This patch increases the maximum stack size of RISC-V, which should help
to reduce problems with programs that allocate large amounts of data on
the stack or do many small allocations.
Change-Id: I1d760050229b12f01a4a8f24c047b587299fef6d
Reviewed-on: https://gem5-review.googlesource.com/6661
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Alec Roelke <ar4jc@virginia.edu>
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/riscv/process.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/riscv/process.cc b/src/arch/riscv/process.cc index 54afc854c..371a8e48a 100644 --- a/src/arch/riscv/process.cc +++ b/src/arch/riscv/process.cc @@ -61,7 +61,7 @@ RiscvProcess::RiscvProcess(ProcessParams * params, ObjectFile *objFile) : Process(params, objFile) { const Addr stack_base = 0x7FFFFFFFFFFFFFFFL; - const Addr max_stack_size = PageBytes * 64; + const Addr max_stack_size = 8 * 1024 * 1024; const Addr next_thread_stack_base = stack_base - max_stack_size; const Addr brk_point = roundUp(objFile->bssBase() + objFile->bssSize(), PageBytes); |