[gem5-dev] Change in public/gem5[master]: arch-riscv: Increase maximum stack size

2017-12-14 Thread Alec Roelke (Gerrit)
Alec Roelke has submitted this change and it was merged. (  
https://gem5-review.googlesource.com/6661 )


Change subject: arch-riscv: Increase maximum stack size
..

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 
Maintainer: Alec Roelke 
---
M src/arch/riscv/process.cc
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jason Lowe-Power: Looks good to me, approved
  Alec Roelke: Looks good to me, approved



diff --git a/src/arch/riscv/process.cc b/src/arch/riscv/process.cc
index 54afc85..371a8e4 100644
--- a/src/arch/riscv/process.cc
+++ b/src/arch/riscv/process.cc
@@ -61,7 +61,7 @@
 ObjectFile *objFile) : Process(params, objFile)
 {
 const Addr stack_base = 0x7FFFL;
-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);

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


Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I1d760050229b12f01a4a8f24c047b587299fef6d
Gerrit-Change-Number: 6661
Gerrit-PatchSet: 2
Gerrit-Owner: Alec Roelke 
Gerrit-Reviewer: Alec Roelke 
Gerrit-Reviewer: Jason Lowe-Power 
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

[gem5-dev] Change in public/gem5[master]: arch-riscv: Increase maximum stack size

2017-12-13 Thread Alec Roelke (Gerrit)
Alec Roelke has uploaded this change for review. (  
https://gem5-review.googlesource.com/6661



Change subject: arch-riscv: Increase maximum stack size
..

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
---
M src/arch/riscv/process.cc
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/arch/riscv/process.cc b/src/arch/riscv/process.cc
index 54afc85..371a8e4 100644
--- a/src/arch/riscv/process.cc
+++ b/src/arch/riscv/process.cc
@@ -61,7 +61,7 @@
 ObjectFile *objFile) : Process(params, objFile)
 {
 const Addr stack_base = 0x7FFFL;
-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);

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


Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1d760050229b12f01a4a8f24c047b587299fef6d
Gerrit-Change-Number: 6661
Gerrit-PatchSet: 1
Gerrit-Owner: Alec Roelke 
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev